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.00122/0.00122, allocations: 93.39 kB / 16.93 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.001206/0.001206, allocations: 179.6 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.588/1.588, 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.0005038/0.0005042, allocations: 8 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1195, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001725/0.1213, allocations: 1.194 MB / 329.5 MB, free: 2.902 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006181/0.1219, allocations: 259.3 kB / 329.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.78e-05/0.122, allocations: 4 kB / 329.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.1222, allocations: 23.8 kB / 329.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 3.765e-05/0.1222, allocations: 7.984 kB / 329.8 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.1226, allocations: 91.81 kB / 329.9 MB, free: 2.523 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000286/0.1229, allocations: 151.7 kB / 330 MB, free: 2.375 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.1232, allocations: 134.2 kB / 330.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.783e-05/0.1233, allocations: 71.75 kB / 330.2 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.1234, allocations: 75.67 kB / 330.3 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.1234, allocations: 8 kB / 330.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.699e-05/0.1235, allocations: 16 kB / 330.3 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.875e-05/0.1236, allocations: 35.84 kB / 330.4 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.761e-05/0.1236, allocations: 53.64 kB / 330.4 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.1238, allocations: 155.6 kB / 330.6 MB, free: 1.824 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1239, allocations: 0 / 330.6 MB, free: 1.824 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1239, allocations: 0 / 330.6 MB, free: 1.824 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1239, allocations: 0 / 330.6 MB, free: 1.824 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.0006491/0.1245, allocations: 442.8 kB / 331 MB, free: 1.344 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1246, allocations: 8.031 kB / 331 MB, free: 1.336 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.603e-05/0.1246, allocations: 27.66 kB / 331 MB, free: 1.309 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.1249, allocations: 226.8 kB / 331.3 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.1249, allocations: 20.56 kB / 331.3 MB, free: 1.027 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.125, allocations: 24 kB / 331.3 MB, free: 1.004 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.1254, allocations: 247.4 kB / 331.5 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1254, allocations: 0 / 331.5 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.1254, allocations: 4 kB / 331.6 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.1254, allocations: 8 kB / 331.6 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002605/0.1257, allocations: 161.6 kB / 331.7 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009388/0.1266, allocations: 0.7014 MB / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.1269, allocations: 175.2 kB / 332.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.127, allocations: 4.188 kB / 332.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.1272, allocations: 123.4 kB / 332.7 MB, free: 15.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1272, allocations: 0 / 332.7 MB, free: 15.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004073/0.1276, allocations: 217.9 kB / 332.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.1277, allocations: 55.41 kB / 333 MB, free: 15.22 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1278, allocations: 149.8 kB / 333.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1278, allocations: 41.69 kB / 333.2 MB, free: 15.01 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.962e-05/0.1279, allocations: 128.6 kB / 333.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.128, allocations: 63.19 kB / 333.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.128, allocations: 8 kB / 333.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1281, allocations: 326.8 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.1282, allocations: 60.62 kB / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.1284, allocations: 124 kB / 333.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.1286, allocations: 79.95 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1286, allocations: 0 / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003754/0.129, allocations: 241.4 kB / 334.2 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.129, allocations: 4 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.129, allocations: 4 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.129, allocations: 4 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.1292, allocations: 27.92 kB / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.1292, allocations: 0 / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1293, allocations: 35.73 kB / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.1293, allocations: 11.95 kB / 334.3 MB, free: 13.87 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.0001809/0.1295, allocations: 169.8 kB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.1296, allocations: 7.906 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003598/0.1299, allocations: 194.3 kB / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1299, allocations: 0 / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.13, allocations: 0 / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.13, allocations: 3.984 kB / 334.6 MB, free: 13.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007392/0.1307, allocations: 0.5726 MB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1307, allocations: 3.984 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.655e-05/0.1308, allocations: 12 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1308, allocations: 4 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.1309, allocations: 7.938 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1309, allocations: 15.88 kB / 335.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1309, allocations: 0 / 335.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.1312, allocations: 275.3 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.1312, allocations: 92.94 kB / 335.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.1313, allocations: 4 kB / 335.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.1314, allocations: 8 kB / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.392e-05/0.1314, allocations: 27.91 kB / 335.6 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.1315, allocations: 15.94 kB / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.917e-05/0.1315, allocations: 95.27 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1315, allocations: 0 / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1318, allocations: 47.84 kB / 335.8 MB, free: 12.23 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.0001656/0.132, allocations: 115.1 kB / 335.9 MB, free: 12.1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002897/0.1323, allocations: 179.7 kB / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1323, allocations: 0 / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.1325, allocations: 83.91 kB / 336.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.1327, allocations: 15.94 kB / 336.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005845/0.1333, allocations: 376.2 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.1336, allocations: 0.7406 MB / 337.3 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.529e-05/0.1337, allocations: 21.95 kB / 337.3 MB, free: 10.65 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.1338, allocations: 27.42 kB / 337.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1338, allocations: 0 / 337.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of Templates: time 0.00508/0.1389, allocations: 1.653 MB / 339 MB, free: 8.98 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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