Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001076, allocations: 97.53 kB / 16.96 MB, free: 6.113 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.001095/0.001095, allocations: 175.2 kB / 17.83 MB, free: 5.73 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.885/1.885, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004615/0.0004615, allocations: 8 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1265, allocations: 47.58 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001857/0.1284, allocations: 1.189 MB / 329.5 MB, free: 2.883 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006558/0.1291, allocations: 263.2 kB / 329.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.1292, allocations: 4 kB / 329.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.1294, allocations: 23.8 kB / 329.8 MB, free: 2.598 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.44e-05/0.1294, allocations: 7.922 kB / 329.8 MB, free: 2.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.1299, allocations: 87.89 kB / 329.9 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003378/0.1302, allocations: 227.5 kB / 330.1 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.1306, allocations: 142.2 kB / 330.3 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.1307, allocations: 63.78 kB / 330.3 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1308, allocations: 71.61 kB / 330.4 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.1308, allocations: 16 kB / 330.4 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.888e-05/0.1309, allocations: 19.98 kB / 330.4 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.131, allocations: 35.84 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.595e-05/0.1311, allocations: 53.64 kB / 330.5 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.1313, allocations: 151.7 kB / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1313, allocations: 4 kB / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1313, allocations: 0 / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1313, allocations: 3.938 kB / 330.7 MB, free: 1.719 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009297/0.1323, allocations: 442.8 kB / 331.1 MB, free: 1.238 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/0.1323, allocations: 8.031 kB / 331.1 MB, free: 1.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.389e-05/0.1324, allocations: 23.72 kB / 331.1 MB, free: 1.207 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.1328, allocations: 230.8 kB / 331.4 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/0.1329, allocations: 16.56 kB / 331.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.1329, allocations: 28 kB / 331.4 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.1335, allocations: 239.4 kB / 331.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.1335, allocations: 0 / 331.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.1335, allocations: 12 kB / 331.7 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1335, allocations: 8 kB / 331.7 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/0.1339, allocations: 161.6 kB / 331.8 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.135, allocations: 0.6975 MB / 332.5 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.1354, allocations: 171.3 kB / 332.7 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.1355, allocations: 85.14 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.1355, allocations: 192 / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.1358, allocations: 123.4 kB / 332.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1358, allocations: 0 / 332.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004555/0.1363, allocations: 213.9 kB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.1364, allocations: 55.41 kB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.1365, allocations: 161.8 kB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.1365, allocations: 33.7 kB / 333.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.84e-05/0.1367, allocations: 128.6 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/0.1367, allocations: 67.17 kB / 333.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.1367, allocations: 12 kB / 333.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1369, allocations: 322.8 kB / 333.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.137, allocations: 60.62 kB / 333.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.1372, allocations: 124.1 kB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.1373, allocations: 75.91 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1373, allocations: 0 / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003538/0.1377, allocations: 237.2 kB / 334.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.1377, allocations: 18.86 kB / 334.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1377, allocations: 4 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1378, allocations: 4 kB / 334.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.1379, allocations: 31.92 kB / 334.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.1379, allocations: 4 kB / 334.4 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.443e-05/0.138, allocations: 27.7 kB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.1381, allocations: 15.98 kB / 334.5 MB, free: 13.68 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001591/0.1382, allocations: 153.7 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.1383, allocations: 11.91 kB / 334.6 MB, free: 13.51 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003496/0.1386, allocations: 198.3 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1387, allocations: 4 kB / 334.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1387, allocations: 0 / 334.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.1387, allocations: 0 / 334.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007637/0.1394, allocations: 0.5804 MB / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1395, allocations: 0 / 335.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.516e-05/0.1395, allocations: 19.98 kB / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1395, allocations: 0 / 335.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.1396, allocations: 3.938 kB / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1396, allocations: 7.953 kB / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1396, allocations: 0 / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.1399, allocations: 279.2 kB / 335.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.14, allocations: 92.95 kB / 335.8 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.14, allocations: 4 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-05/0.1401, allocations: 15.98 kB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.1402, allocations: 19.92 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.1402, allocations: 15.98 kB / 335.8 MB, free: 12.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.1403, allocations: 87.28 kB / 335.9 MB, free: 12.1 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1403, allocations: 3.938 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1406, allocations: 55.83 kB / 336 MB, free: 12.04 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.000223/0.1409, allocations: 115.1 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003877/0.1413, allocations: 179.8 kB / 336.3 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1413, allocations: 0 / 336.3 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.1414, allocations: 79.91 kB / 336.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.1417, allocations: 23.98 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007061/0.1425, allocations: 380.1 kB / 336.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.1428, allocations: 0.7289 MB / 337.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.625e-05/0.1429, allocations: 25.94 kB / 337.5 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.143, allocations: 31.38 kB / 337.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of SimCode: time 4.2e-07/0.143, allocations: 0 / 337.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of Templates: time 0.004723/0.1477, allocations: 1.647 MB / 339.2 MB, free: 8.789 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches