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.001105/0.001105, allocations: 108.7 kB / 17.93 MB, free: 5.547 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.001072/0.001072, allocations: 197.8 kB / 18.86 MB, free: 4.625 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.397/1.397, allocations: 205.1 MB / 224.7 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.00172/0.00172, allocations: 43.92 kB / 280.8 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1185, allocations: 46.63 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002961/0.1215, allocations: 1.749 MB / 329.2 MB, free: 3.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006158/0.1221, allocations: 267.2 kB / 329.4 MB, free: 2.773 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.432e-05/0.1222, allocations: 3.938 kB / 329.4 MB, free: 2.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1224, allocations: 15.88 kB / 329.5 MB, free: 2.754 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.158e-05/0.1225, allocations: 15.91 kB / 329.5 MB, free: 2.738 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003636/0.1228, allocations: 103.8 kB / 329.6 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.1231, allocations: 275.5 kB / 329.8 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.1234, allocations: 190.9 kB / 330 MB, free: 2.176 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.853e-05/0.1235, allocations: 91.7 kB / 330.1 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1236, allocations: 91.59 kB / 330.2 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.418e-05/0.1237, allocations: 27.94 kB / 330.2 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.129e-05/0.1238, allocations: 39.92 kB / 330.3 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.582e-05/0.1238, allocations: 55.89 kB / 330.3 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.08e-05/0.1239, allocations: 99.47 kB / 330.4 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001939/0.1241, allocations: 187.9 kB / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1241, allocations: 0 / 330.6 MB, free: 1.594 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1241, allocations: 3.938 kB / 330.6 MB, free: 1.59 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1242, allocations: 0 / 330.6 MB, free: 1.59 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.0006323/0.1248, allocations: 498 kB / 331.1 MB, free: 1.051 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1248, allocations: 11.89 kB / 331.1 MB, free: 1.039 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.1249, allocations: 24.66 kB / 331.1 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.1251, allocations: 228 kB / 331.4 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.1252, allocations: 20.94 kB / 331.4 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.1252, allocations: 36.38 kB / 331.4 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.1257, allocations: 266.5 kB / 331.7 MB, free: 428 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1257, allocations: 192 / 331.7 MB, free: 428 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.1257, allocations: 15.94 kB / 331.7 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1257, allocations: 4 kB / 331.7 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.126, allocations: 169.6 kB / 331.9 MB, free: 240 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.127, allocations: 0.9673 MB / 332.8 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.1273, allocations: 162.7 kB / 333 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1274, allocations: 76.83 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.1275, allocations: 4 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.1278, allocations: 111.3 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.1278, allocations: 0 / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003921/0.1282, allocations: 213.3 kB / 333.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.1282, allocations: 59.41 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.1283, allocations: 159 kB / 333.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.1284, allocations: 33.7 kB / 333.6 MB, free: 14.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.354e-05/0.1285, allocations: 148.4 kB / 333.8 MB, free: 14.19 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.1285, allocations: 59.34 kB / 333.8 MB, free: 14.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1287, allocations: 77.86 kB / 333.9 MB, free: 14.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1288, allocations: 334.8 kB / 334.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.1289, allocations: 64.62 kB / 334.3 MB, free: 13.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.129, allocations: 149.7 kB / 334.4 MB, free: 13.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.1293, allocations: 192.3 kB / 334.6 MB, free: 13.26 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1293, allocations: 0 / 334.6 MB, free: 13.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000339/0.1296, allocations: 249.5 kB / 334.9 MB, free: 13.01 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1297, allocations: 8.062 kB / 334.9 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1297, allocations: 4 kB / 334.9 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1297, allocations: 4 kB / 334.9 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1298, allocations: 27.92 kB / 334.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1299, allocations: 7.938 kB / 334.9 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-05/0.13, allocations: 27.78 kB / 335 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.13, allocations: 19.98 kB / 335 MB, free: 12.91 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.0001462/0.1301, allocations: 156.3 kB / 335.1 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.1302, allocations: 19.81 kB / 335.1 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003322/0.1305, allocations: 190.7 kB / 335.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1305, allocations: 7.938 kB / 335.3 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1305, allocations: 0 / 335.3 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1306, allocations: 0 / 335.3 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.1312, allocations: 0.591 MB / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1312, allocations: 4 kB / 335.9 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/0.1313, allocations: 15.98 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.1313, allocations: 3.938 kB / 336 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.1313, allocations: 8 kB / 336 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1314, allocations: 0 / 336 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1314, allocations: 0 / 336 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.1316, allocations: 275.2 kB / 336.2 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.503e-05/0.1317, allocations: 92.89 kB / 336.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.1317, allocations: 4 kB / 336.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.119e-05/0.1318, allocations: 11.98 kB / 336.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.773e-05/0.1319, allocations: 19.98 kB / 336.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1319, allocations: 7.984 kB / 336.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.851e-05/0.132, allocations: 102.4 kB / 336.5 MB, free: 11.31 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.132, allocations: 0 / 336.5 MB, free: 11.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002973/0.1323, allocations: 55.75 kB / 336.5 MB, free: 11.25 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.00015/0.1324, allocations: 111.1 kB / 336.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.1328, allocations: 199.7 kB / 336.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1328, allocations: 3.938 kB / 336.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.1329, allocations: 79.91 kB / 336.9 MB, free: 10.86 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.1332, allocations: 23.94 kB / 336.9 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006076/0.1338, allocations: 439 kB / 337.4 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.1341, allocations: 0.74 MB / 338.1 MB, free: 9.605 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.775e-05/0.1342, allocations: 23.42 kB / 338.1 MB, free: 9.582 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1342, allocations: 0 / 338.1 MB, free: 9.582 MB / 286.1 MB Notification: Performance of Templates: time 0.003934/0.1381, allocations: 2.412 MB / 340.5 MB, free: 7.164 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/jenkins1/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