Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001627/0.001627, allocations: 106.9 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002283/0.002283, allocations: 220.3 kB / 23 MB, free: 5.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.645/1.645, allocations: 230.2 MB / 256.2 MB, free: 8.543 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00309/0.00309, allocations: 67.88 kB / 376.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3687, allocations: 53.32 MB / 429.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003378/0.3721, allocations: 1.725 MB / 431.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007825/0.3729, allocations: 295.1 kB / 431.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.3731, allocations: 7.938 kB / 431.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.3732, allocations: 23.73 kB / 431.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.384e-05/0.3733, allocations: 23.73 kB / 431.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.3737, allocations: 115.8 kB / 432 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003718/0.3741, allocations: 263.5 kB / 432.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.3744, allocations: 153.5 kB / 432.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.3745, allocations: 91.7 kB / 432.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.3747, allocations: 107.5 kB / 432.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.3747, allocations: 24 kB / 432.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.079e-05/0.3748, allocations: 32 kB / 432.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.3749, allocations: 55.83 kB / 432.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.375, allocations: 99.52 kB / 432.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.3754, allocations: 256.2 kB / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3754, allocations: 0 / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3754, allocations: 0 / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3754, allocations: 3.984 kB / 433 MB, free: 4.309 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.0008322/0.3762, allocations: 0.4906 MB / 433.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3763, allocations: 12.03 kB / 433.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002305/0.3765, allocations: 32.78 kB / 433.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.3769, allocations: 224.1 kB / 433.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.3769, allocations: 24.92 kB / 433.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.377, allocations: 24.38 kB / 433.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.3775, allocations: 282.5 kB / 434.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3775, allocations: 192 / 434.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.3775, allocations: 11.94 kB / 434.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3775, allocations: 8 kB / 434.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.3778, allocations: 161.6 kB / 434.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.379, allocations: 0.9596 MB / 435.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.3793, allocations: 149.5 kB / 435.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.3794, allocations: 81.61 kB / 435.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3795, allocations: 4 kB / 435.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.3797, allocations: 133 kB / 435.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3797, allocations: 4 kB / 435.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005244/0.3802, allocations: 220.6 kB / 435.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.3803, allocations: 89.22 kB / 435.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.3804, allocations: 157.7 kB / 436 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.3804, allocations: 33.7 kB / 436.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3806, allocations: 144.7 kB / 436.2 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.3806, allocations: 63.58 kB / 436.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.3807, allocations: 73.47 kB / 436.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3809, allocations: 338.7 kB / 436.7 MB, free: 372 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.3811, allocations: 59.98 kB / 436.7 MB, free: 312 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.3812, allocations: 144.5 kB / 436.9 MB, free: 136 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3815, allocations: 196.3 kB / 437.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3815, allocations: 0 / 437.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003884/0.3819, allocations: 253.3 kB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.3819, allocations: 8 kB / 437.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3819, allocations: 0 / 437.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.382, allocations: 4 kB / 437.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3821, allocations: 39.92 kB / 437.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.3821, allocations: 7.938 kB / 437.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.3822, allocations: 28.09 kB / 437.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.3823, allocations: 16 kB / 437.4 MB, free: 15.55 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.000156/0.3824, allocations: 153.7 kB / 437.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.3824, allocations: 11.91 kB / 437.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.524e-05/0.3825, allocations: 24.83 kB / 437.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3825, allocations: 4 kB / 437.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3825, allocations: 0 / 437.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3825, allocations: 0 / 437.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007764/0.3833, allocations: 0.5869 MB / 438.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3833, allocations: 0 / 438.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.214e-05/0.3833, allocations: 19.92 kB / 438.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3834, allocations: 0 / 438.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.3834, allocations: 8 kB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3834, allocations: 3.938 kB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3834, allocations: 0 / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.3837, allocations: 277.3 kB / 438.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.3838, allocations: 93 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.3838, allocations: 4 kB / 438.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.372e-05/0.3839, allocations: 15.91 kB / 438.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.384, allocations: 19.92 kB / 438.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.384, allocations: 11.98 kB / 438.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.989e-05/0.3841, allocations: 98.27 kB / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3841, allocations: 0 / 438.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.3844, allocations: 55.84 kB / 438.8 MB, free: 14.07 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.0001504/0.3845, allocations: 103.2 kB / 438.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003844/0.3849, allocations: 173.2 kB / 439.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3849, allocations: 0 / 439.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.3851, allocations: 71.77 kB / 439.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.3854, allocations: 28.59 kB / 439.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008171/0.3862, allocations: 340.6 kB / 439.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.3867, allocations: 0.7287 MB / 440.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.678e-05/0.3868, allocations: 25.94 kB / 440.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.385e-05/0.3868, allocations: 19.44 kB / 440.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3868, allocations: 7.938 kB / 440.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Templates: time 0.006078/0.3929, allocations: 1.756 MB / 442 MB, free: 10.77 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 5.183959255926311]