Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.571/1.571, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 47.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.283, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003464/0.2864, allocations: 1.691 MB / 433.2 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007283/0.2871, allocations: 283.2 kB / 433.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2872, allocations: 7.938 kB / 433.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.2874, allocations: 27.73 kB / 433.6 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.818e-05/0.2874, allocations: 19.78 kB / 433.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.2878, allocations: 123.8 kB / 433.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.2882, allocations: 279.4 kB / 434 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002841/0.2885, allocations: 157.9 kB / 434.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.2886, allocations: 95.69 kB / 434.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.2888, allocations: 99.55 kB / 434.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.2888, allocations: 24 kB / 434.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.964e-05/0.2889, allocations: 31.92 kB / 434.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.912e-05/0.289, allocations: 59.83 kB / 434.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.2891, allocations: 83.58 kB / 434.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.2894, allocations: 261.1 kB / 434.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2894, allocations: 4 kB / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2894, allocations: 0 / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2894, allocations: 0 / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006885/0.2901, allocations: 417.2 kB / 435.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2901, allocations: 8.031 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.2904, allocations: 44.7 kB / 435.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003018/0.2907, allocations: 174.2 kB / 435.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.874e-05/0.2907, allocations: 24.88 kB / 435.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.2908, allocations: 24.38 kB / 435.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.2913, allocations: 273.7 kB / 435.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2913, allocations: 8.125 kB / 435.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.2913, allocations: 15.94 kB / 435.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.2913, allocations: 4 kB / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.2917, allocations: 161.6 kB / 435.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2928, allocations: 0.8279 MB / 436.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.2931, allocations: 153.4 kB / 436.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.2932, allocations: 77.62 kB / 436.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.2932, allocations: 4 kB / 437 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2934, allocations: 141 kB / 437.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2934, allocations: 0 / 437.1 MB, free: 1.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000459/0.2939, allocations: 222.7 kB / 437.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.294, allocations: 93.03 kB / 437.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.2941, allocations: 153.7 kB / 437.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.2941, allocations: 37.7 kB / 437.6 MB, free: 492 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2943, allocations: 144.7 kB / 437.7 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.2943, allocations: 63.52 kB / 437.8 MB, free: 276 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.2944, allocations: 85.42 kB / 437.9 MB, free: 184 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2946, allocations: 330.9 kB / 438.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2947, allocations: 59.98 kB / 438.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.2949, allocations: 140.5 kB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.2952, allocations: 192.8 kB / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2952, allocations: 8 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004251/0.2956, allocations: 253.3 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2956, allocations: 4 kB / 438.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.2956, allocations: 4 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2957, allocations: 4 kB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2958, allocations: 31.92 kB / 438.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2958, allocations: 4.281 kB / 438.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.2959, allocations: 31.83 kB / 438.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.296, allocations: 20 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.2961, allocations: 165.5 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.839e-05/0.2962, allocations: 11.95 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.2962, allocations: 20.86 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2962, allocations: 4 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2962, allocations: 0 / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2962, allocations: 4 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007057/0.2969, allocations: 0.489 MB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2969, allocations: 0 / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.156e-05/0.297, allocations: 16 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.297, allocations: 0 / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.297, allocations: 4 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.297, allocations: 3.938 kB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.297, allocations: 3.984 kB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.2974, allocations: 280.1 kB / 439.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.2974, allocations: 11.91 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.2974, allocations: 7.984 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.2975, allocations: 12 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.2976, allocations: 23.91 kB / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.2976, allocations: 7.984 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.98e-05/0.2977, allocations: 99.27 kB / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2977, allocations: 0 / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.298, allocations: 47.89 kB / 440.1 MB, free: 13.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001186/0.2981, allocations: 111.1 kB / 440.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003268/0.2984, allocations: 164.3 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2984, allocations: 4.062 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.2986, allocations: 82.55 kB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.2989, allocations: 16 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.2995, allocations: 336.4 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.2997, allocations: 121.6 kB / 440.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.644e-05/0.2997, allocations: 21.94 kB / 441 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.2998, allocations: 19.44 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2998, allocations: 4 kB / 441 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Templates: time 0.005872/0.3057, allocations: 1.855 MB / 442.8 MB, free: 11.04 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.663946392014623]