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.001278/0.001278, allocations: 99.2 kB / 16.95 MB, free: 6.078 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.001252/0.001252, allocations: 175.2 kB / 17.84 MB, free: 5.707 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.966/1.966, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006495/0.0006499, allocations: 12 kB / 280.8 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1247, allocations: 47.57 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002185/0.1269, allocations: 1.378 MB / 329.7 MB, free: 2.711 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008535/0.1278, allocations: 267.2 kB / 330 MB, free: 2.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.128, allocations: 4 kB / 330 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.1281, allocations: 23.8 kB / 330 MB, free: 2.422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.283e-05/0.1282, allocations: 11.88 kB / 330 MB, free: 2.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.1286, allocations: 91.88 kB / 330.1 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.129, allocations: 235.6 kB / 330.3 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003514/0.1294, allocations: 153.3 kB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.1295, allocations: 67.78 kB / 330.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000154/0.1297, allocations: 75.59 kB / 330.6 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.342e-05/0.1297, allocations: 8 kB / 330.6 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-05/0.1298, allocations: 20 kB / 330.7 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.1299, allocations: 39.84 kB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.426e-05/0.13, allocations: 57.58 kB / 330.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.1302, allocations: 163.9 kB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.1302, allocations: 0 / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1302, allocations: 0 / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1302, allocations: 0 / 330.9 MB, free: 1.508 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.0006962/0.1309, allocations: 449.9 kB / 331.3 MB, free: 1.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.131, allocations: 12.03 kB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.1311, allocations: 27.8 kB / 331.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.1314, allocations: 238.7 kB / 331.6 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.723e-05/0.1314, allocations: 20.56 kB / 331.6 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.208e-05/0.1315, allocations: 27.95 kB / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.132, allocations: 270 kB / 331.9 MB, free: 376 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.132, allocations: 3.938 kB / 331.9 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.132, allocations: 19.94 kB / 332 MB, free: 352 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.1321, allocations: 4 kB / 332 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.1324, allocations: 165.6 kB / 332.1 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.1336, allocations: 0.9673 MB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.1339, allocations: 155.3 kB / 333.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.134, allocations: 73.3 kB / 333.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.1341, allocations: 192 / 333.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1343, allocations: 123.4 kB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.1343, allocations: 0 / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004271/0.1348, allocations: 202 kB / 333.6 MB, free: 14.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.1348, allocations: 59.41 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.135, allocations: 165.7 kB / 333.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.135, allocations: 37.7 kB / 333.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.646e-05/0.1351, allocations: 136.5 kB / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.488e-05/0.1352, allocations: 63.17 kB / 334.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.371e-05/0.1352, allocations: 7.938 kB / 334.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1354, allocations: 326.8 kB / 334.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.1355, allocations: 60.62 kB / 334.5 MB, free: 13.69 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.1357, allocations: 141.8 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.1358, allocations: 75.91 kB / 334.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1358, allocations: 0 / 334.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004004/0.1363, allocations: 245.2 kB / 334.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.1363, allocations: 14.61 kB / 334.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1363, allocations: 288 / 334.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1363, allocations: 8 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.1365, allocations: 35.92 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1365, allocations: 4 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.1366, allocations: 27.77 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.1367, allocations: 20 kB / 335 MB, free: 13.09 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.1368, allocations: 148.3 kB / 335.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.1369, allocations: 19.8 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003639/0.1372, allocations: 194.7 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1373, allocations: 0 / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.1373, allocations: 7.938 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1373, allocations: 0 / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007593/0.1381, allocations: 0.5915 MB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1381, allocations: 0 / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-05/0.1382, allocations: 23.84 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1382, allocations: 8 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1382, allocations: 4 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.1382, allocations: 0 / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1382, allocations: 4 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.1385, allocations: 267.2 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.192e-05/0.1386, allocations: 92.91 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.1386, allocations: 8 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.1387, allocations: 15.98 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.882e-05/0.1388, allocations: 19.91 kB / 336.4 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.1388, allocations: 8 kB / 336.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.628e-05/0.1389, allocations: 96.39 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1389, allocations: 0 / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.1392, allocations: 59.73 kB / 336.6 MB, free: 11.44 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000168/0.1394, allocations: 115.1 kB / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.1397, allocations: 179.8 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1397, allocations: 0 / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1399, allocations: 79.91 kB / 336.9 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.1402, allocations: 23.98 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006709/0.1409, allocations: 388.3 kB / 337.3 MB, free: 10.63 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1413, allocations: 0.7406 MB / 338.1 MB, free: 9.867 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.786e-05/0.1413, allocations: 29.89 kB / 338.1 MB, free: 9.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.657e-05/0.1414, allocations: 23.42 kB / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1414, allocations: 0 / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of Templates: time 0.00491/0.1463, allocations: 1.648 MB / 339.8 MB, free: 8.172 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