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.001156/0.001156, allocations: 101 kB / 16.94 MB, free: 5.98 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.001368/0.001369, allocations: 178.1 kB / 17.82 MB, free: 5.652 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.712/1.712, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004945/0.0004946, allocations: 8 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1283, allocations: 47.58 MB / 328.3 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002222/0.1306, allocations: 1.403 MB / 329.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.1314, allocations: 263.2 kB / 330 MB, free: 2.441 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.1316, allocations: 7.938 kB / 330 MB, free: 2.434 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.1317, allocations: 27.78 kB / 330 MB, free: 2.406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.559e-05/0.1318, allocations: 19.91 kB / 330 MB, free: 2.387 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.1323, allocations: 83.91 kB / 330.1 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.1326, allocations: 151.7 kB / 330.3 MB, free: 2.156 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.1329, allocations: 145.9 kB / 330.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.57e-05/0.133, allocations: 75.69 kB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.1331, allocations: 71.67 kB / 330.5 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.1332, allocations: 12 kB / 330.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.76e-05/0.1332, allocations: 12 kB / 330.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.292e-05/0.1333, allocations: 43.84 kB / 330.6 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.881e-05/0.1334, allocations: 57.58 kB / 330.7 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.1336, allocations: 159.6 kB / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1336, allocations: 0 / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1336, allocations: 0 / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1336, allocations: 0 / 330.8 MB, free: 1.582 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.0006658/0.1343, allocations: 462 kB / 331.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1344, allocations: 8.031 kB / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.1344, allocations: 19.81 kB / 331.3 MB, free: 1.051 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1347, allocations: 230.7 kB / 331.5 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.1348, allocations: 24.55 kB / 331.5 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.1348, allocations: 28 kB / 331.6 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/0.1353, allocations: 270 kB / 331.8 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1353, allocations: 0 / 331.8 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.1354, allocations: 12 kB / 331.9 MB, free: 440 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1354, allocations: 4 kB / 331.9 MB, free: 436 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.1357, allocations: 169.5 kB / 332 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.1369, allocations: 0.9674 MB / 333 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.1372, allocations: 159.4 kB / 333.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1372, allocations: 4.188 kB / 333.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.1375, allocations: 111.5 kB / 333.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.1375, allocations: 4 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004219/0.1379, allocations: 210 kB / 333.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.138, allocations: 55.41 kB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.1381, allocations: 157.3 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.1382, allocations: 33.7 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1383, allocations: 144.4 kB / 333.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.1384, allocations: 67.19 kB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.1384, allocations: 4 kB / 333.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1385, allocations: 330.8 kB / 334.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1386, allocations: 60.62 kB / 334.3 MB, free: 13.85 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.1388, allocations: 137.7 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.1389, allocations: 71.97 kB / 334.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1389, allocations: 4 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003579/0.1393, allocations: 241.5 kB / 334.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1393, allocations: 12 kB / 334.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1393, allocations: 4 kB / 334.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1394, allocations: 7.953 kB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.1395, allocations: 27.92 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.1395, allocations: 7.984 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.1397, allocations: 31.69 kB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.1397, allocations: 12 kB / 334.8 MB, free: 13.27 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.0001506/0.1399, allocations: 164.3 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.1399, allocations: 15.81 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.1402, allocations: 182.4 kB / 335.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1402, allocations: 0 / 335.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1402, allocations: 7.953 kB / 335.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1403, allocations: 7.922 kB / 335.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006831/0.1409, allocations: 0.5876 MB / 335.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.141, allocations: 4 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-05/0.141, allocations: 23.88 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1411, allocations: 4 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1411, allocations: 0 / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1411, allocations: 0 / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1411, allocations: 0 / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.1414, allocations: 271.2 kB / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.1414, allocations: 92.95 kB / 336.2 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.1415, allocations: 11.94 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.1415, allocations: 12 kB / 336.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.716e-05/0.1416, allocations: 23.97 kB / 336.2 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.1417, allocations: 4 kB / 336.2 MB, free: 11.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.464e-05/0.1417, allocations: 103.2 kB / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1417, allocations: 0 / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.142, allocations: 51.84 kB / 336.4 MB, free: 11.61 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,transition1.enableFire,step.localActive,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.0001437/0.1422, allocations: 115.1 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.1425, allocations: 175.8 kB / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1425, allocations: 0 / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1426, allocations: 83.84 kB / 336.8 MB, free: 11.24 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.1428, allocations: 19.92 kB / 336.8 MB, free: 11.22 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006239/0.1435, allocations: 384.4 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.1438, allocations: 0.7367 MB / 337.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.801e-05/0.1439, allocations: 29.94 kB / 337.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.144, allocations: 23.42 kB / 337.9 MB, free: 10 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.144, allocations: 3.938 kB / 337.9 MB, free: 10 MB / 286.1 MB Notification: Performance of Templates: time 0.004725/0.1487, allocations: 1.627 MB / 339.6 MB, free: 8.375 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches