Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 105.4 kB / 17.73 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 328.5 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1202, allocations: 46.62 MB / 375.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003592/0.1238, allocations: 1.687 MB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008568/0.1247, allocations: 260 kB / 377.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.1249, allocations: 4 kB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.1252, allocations: 31.67 kB / 377.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.766e-05/0.1253, allocations: 15.8 kB / 377.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006211/0.1259, allocations: 119.8 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005074/0.1264, allocations: 275.5 kB / 377.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004175/0.1269, allocations: 181.5 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.127, allocations: 87.7 kB / 377.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.1272, allocations: 99.53 kB / 377.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.459e-05/0.1272, allocations: 20 kB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.737e-05/0.1274, allocations: 32 kB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.1274, allocations: 63.81 kB / 378 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.1276, allocations: 99.41 kB / 378.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.128, allocations: 251.1 kB / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.128, allocations: 0 / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.128, allocations: 4 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.128, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.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.0008574/0.1289, allocations: 494.2 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.1289, allocations: 15.89 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.632e-05/0.129, allocations: 20.75 kB / 378.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/0.1295, allocations: 228 kB / 379.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.495e-05/0.1296, allocations: 20.94 kB / 379.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.893e-05/0.1296, allocations: 24.38 kB / 379.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000616/0.1303, allocations: 274.5 kB / 379.4 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1303, allocations: 192 / 379.4 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.1303, allocations: 19.88 kB / 379.4 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.1304, allocations: 8 kB / 379.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.1307, allocations: 165.6 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3147/0.4455, allocations: 0.9584 MB / 380.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.4458, allocations: 158.5 kB / 380.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.446, allocations: 73.3 kB / 380.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.446, allocations: 10.62 kB / 380.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.4463, allocations: 119.1 kB / 380.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.647e-06/0.4463, allocations: 0 / 380.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004997/0.4468, allocations: 213.6 kB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.4469, allocations: 56.69 kB / 381.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.447, allocations: 152.7 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.447, allocations: 38.14 kB / 381.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.176e-05/0.4471, allocations: 140.9 kB / 381.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.269e-05/0.4472, allocations: 62.36 kB / 381.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.4473, allocations: 82.92 kB / 381.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.248e-05/0.4474, allocations: 327 kB / 381.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.4475, allocations: 62.25 kB / 382 MB, free: 11.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.4477, allocations: 149.9 kB / 382.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.4479, allocations: 182.7 kB / 382.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.4479, allocations: 5.312 kB / 382.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004336/0.4484, allocations: 249.5 kB / 382.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.4484, allocations: 6.391 kB / 382.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4484, allocations: 2.562 kB / 382.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.4484, allocations: 7.922 kB / 382.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.4486, allocations: 37.66 kB / 382.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.4486, allocations: 8.734 kB / 382.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.4487, allocations: 25.66 kB / 382.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.4488, allocations: 17.23 kB / 382.7 MB, free: 11.44 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001565/0.4489, allocations: 156.8 kB / 382.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.449, allocations: 14.86 kB / 382.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004231/0.4494, allocations: 192.7 kB / 383 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.4494, allocations: 6.75 kB / 383 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4494, allocations: 0.5 kB / 383 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.4495, allocations: 1.875 kB / 383 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007849/0.4502, allocations: 0.588 MB / 383.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4503, allocations: 0 / 383.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/0.4503, allocations: 19.64 kB / 383.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.4504, allocations: 1.188 kB / 383.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.4504, allocations: 9.906 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4504, allocations: 5.953 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4504, allocations: 1.156 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.4507, allocations: 272.8 kB / 383.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.44e-05/0.4507, allocations: 90.31 kB / 384 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.4508, allocations: 7.109 kB / 384 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.111e-05/0.4509, allocations: 11.44 kB / 384 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.126e-05/0.451, allocations: 17.67 kB / 384 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.451, allocations: 9.297 kB / 384 MB, free: 10.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.4511, allocations: 95.95 kB / 384.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4511, allocations: 3.281 kB / 384.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.4514, allocations: 57.97 kB / 384.2 MB, free: 10.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001538/0.4516, allocations: 109.8 kB / 384.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.452, allocations: 191.8 kB / 384.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.452, allocations: 4.484 kB / 384.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.4522, allocations: 81.3 kB / 384.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.4525, allocations: 21.16 kB / 384.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008695/0.4534, allocations: 334 kB / 384.9 MB, free: 9.922 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.4537, allocations: 0.735 MB / 385.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.935e-05/0.4538, allocations: 27.06 kB / 385.7 MB, free: 9.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.816e-05/0.4539, allocations: 21.08 kB / 385.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4539, allocations: 0 / 385.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of Templates: time 0.006954/0.4609, allocations: 1.882 MB / 387.6 MB, free: 9.07 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches