Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001656, allocations: 114 kB / 17.28 MB, free: 6.219 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.001753/0.001753, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.132/2.132, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001703/0.001703, allocations: 51.92 kB / 280.1 MB, free: 3.52 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1137, allocations: 46.63 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003429/0.1172, allocations: 1.752 MB / 328.5 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006708/0.1179, allocations: 267.1 kB / 328.8 MB, free: 2.777 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.866e-05/0.118, allocations: 4 kB / 328.8 MB, free: 2.773 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.1182, allocations: 19.8 kB / 328.8 MB, free: 2.754 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.776e-05/0.1182, allocations: 7.938 kB / 328.8 MB, free: 2.746 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.1186, allocations: 107.9 kB / 328.9 MB, free: 2.641 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.1189, allocations: 259.5 kB / 329.2 MB, free: 2.387 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.1193, allocations: 206.8 kB / 329.4 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.1194, allocations: 95.64 kB / 329.5 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.1196, allocations: 99.58 kB / 329.6 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.1196, allocations: 24 kB / 329.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.908e-05/0.1197, allocations: 35.94 kB / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.1198, allocations: 51.89 kB / 329.7 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.12, allocations: 103.5 kB / 329.8 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1202, allocations: 239.5 kB / 330 MB, free: 1.543 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1203, allocations: 4 kB / 330 MB, free: 1.539 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.1203, allocations: 4 kB / 330 MB, free: 1.535 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1203, allocations: 0 / 330 MB, free: 1.535 MB / 270.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.0006698/0.121, allocations: 490.1 kB / 330.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.121, allocations: 11.89 kB / 330.5 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.1211, allocations: 24.66 kB / 330.5 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.1214, allocations: 232 kB / 330.8 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.1214, allocations: 24.88 kB / 330.8 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.1215, allocations: 24.38 kB / 330.8 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.1219, allocations: 278.5 kB / 331.1 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.122, allocations: 192 / 331.1 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.122, allocations: 15.92 kB / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.122, allocations: 8 kB / 331.1 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.1223, allocations: 161.6 kB / 331.3 MB, free: 188 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.1236, allocations: 0.9751 MB / 332.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.1239, allocations: 150.8 kB / 332.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.124, allocations: 72.83 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.124, allocations: 4 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002993/0.1243, allocations: 123.2 kB / 332.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.1243, allocations: 0 / 332.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.000448/0.1248, allocations: 209.9 kB / 332.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.1249, allocations: 55.41 kB / 332.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.125, allocations: 159.1 kB / 333 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.1251, allocations: 37.7 kB / 333 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1252, allocations: 148.4 kB / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.1252, allocations: 47.36 kB / 333.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.1253, allocations: 89.91 kB / 333.3 MB, free: 14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1255, allocations: 334.7 kB / 333.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1256, allocations: 60.62 kB / 333.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.1258, allocations: 133.8 kB / 333.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.1261, allocations: 196.3 kB / 334 MB, free: 13.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1261, allocations: 3.938 kB / 334 MB, free: 13.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003766/0.1265, allocations: 249.2 kB / 334.3 MB, free: 12.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1265, allocations: 8 kB / 334.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1265, allocations: 288 / 334.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.1265, allocations: 8 kB / 334.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1267, allocations: 35.86 kB / 334.3 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1267, allocations: 4 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.1268, allocations: 35.77 kB / 334.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.1269, allocations: 16 kB / 334.4 MB, free: 12.86 MB / 286.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.condition,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.0001759/0.127, allocations: 160.3 kB / 334.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.1271, allocations: 15.8 kB / 334.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003656/0.1275, allocations: 190.8 kB / 334.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1275, allocations: 4 kB / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.902e-05/0.1275, allocations: 0 / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1275, allocations: 0 / 334.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007465/0.1283, allocations: 0.5948 MB / 335.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1283, allocations: 0 / 335.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-05/0.1284, allocations: 19.92 kB / 335.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1284, allocations: 7.938 kB / 335.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.1284, allocations: 4 kB / 335.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1284, allocations: 0 / 335.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1284, allocations: 4 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.1287, allocations: 271.2 kB / 335.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.347e-05/0.1288, allocations: 92.89 kB / 335.7 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.1288, allocations: 4 kB / 335.7 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.58e-05/0.1289, allocations: 11.98 kB / 335.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.616e-05/0.129, allocations: 23.91 kB / 335.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.129, allocations: 8 kB / 335.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.753e-05/0.1291, allocations: 99.97 kB / 335.9 MB, free: 11.26 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1291, allocations: 4 kB / 335.9 MB, free: 11.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1294, allocations: 51.75 kB / 335.9 MB, free: 11.2 MB / 286.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001658/0.1296, allocations: 111.2 kB / 336 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003788/0.13, allocations: 192 kB / 336.2 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.13, allocations: 4.188 kB / 336.2 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.1301, allocations: 83.91 kB / 336.3 MB, free: 10.81 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.1304, allocations: 31.86 kB / 336.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006456/0.1311, allocations: 404.8 kB / 336.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1314, allocations: 0.7478 MB / 337.5 MB, free: 9.582 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.788e-05/0.1315, allocations: 21.94 kB / 337.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.542e-05/0.1316, allocations: 31.42 kB / 337.5 MB, free: 9.527 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1316, allocations: 3.938 kB / 337.5 MB, free: 9.523 MB / 286.1 MB Notification: Performance of Templates: time 0.00509/0.1367, allocations: 1.82 MB / 339.3 MB, free: 7.711 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches