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.001165/0.001165, allocations: 95.41 kB / 16.93 MB, free: 5.984 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.001204/0.001204, allocations: 181.2 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.739/1.739, allocations: 205.4 MB / 224 MB, free: 13.18 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.0005725/0.0005728, allocations: 8 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1336, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002103/0.1358, allocations: 1.372 MB / 329.7 MB, free: 2.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006649/0.1365, allocations: 279.1 kB / 330 MB, free: 2.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1366, allocations: 4 kB / 330 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.1367, allocations: 19.81 kB / 330 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.972e-05/0.1368, allocations: 11.97 kB / 330 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.1372, allocations: 91.83 kB / 330.1 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.1375, allocations: 163.7 kB / 330.2 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.1378, allocations: 149.4 kB / 330.4 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.159e-05/0.1378, allocations: 63.78 kB / 330.4 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.138, allocations: 75.61 kB / 330.5 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.138, allocations: 8 kB / 330.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.006e-05/0.1381, allocations: 19.98 kB / 330.6 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.693e-05/0.1382, allocations: 43.83 kB / 330.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.457e-05/0.1382, allocations: 57.58 kB / 330.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.1384, allocations: 163.9 kB / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1384, allocations: 0 / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1384, allocations: 0 / 330.8 MB, free: 1.586 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1384, allocations: 4 kB / 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.0006145/0.1391, allocations: 453.8 kB / 331.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1391, allocations: 8.031 kB / 331.3 MB, free: 1.082 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.84e-05/0.1392, allocations: 19.81 kB / 331.3 MB, free: 1.062 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.1395, allocations: 226.7 kB / 331.5 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.501e-05/0.1395, allocations: 24.56 kB / 331.5 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.1396, allocations: 31.95 kB / 331.6 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.14, allocations: 270 kB / 331.8 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.14, allocations: 0 / 331.8 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.14, allocations: 12 kB / 331.8 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1401, allocations: 4 kB / 331.8 MB, free: 448 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.1404, allocations: 169.5 kB / 332 MB, free: 280 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.1415, allocations: 0.9713 MB / 333 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.1418, allocations: 155.4 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1418, allocations: 4.188 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.142, allocations: 107.5 kB / 333.2 MB, free: 14.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.1421, allocations: 3.938 kB / 333.2 MB, free: 14.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004169/0.1425, allocations: 210 kB / 333.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.1425, allocations: 59.41 kB / 333.5 MB, free: 14.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.1427, allocations: 165.4 kB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.1427, allocations: 33.7 kB / 333.7 MB, free: 14.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.1428, allocations: 140.5 kB / 333.8 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.029e-05/0.1429, allocations: 63.2 kB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.232e-05/0.1429, allocations: 8 kB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.143, allocations: 326.8 kB / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.1432, allocations: 60.62 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.1433, allocations: 141.7 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1434, allocations: 75.97 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1434, allocations: 0 / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003465/0.1438, allocations: 249.2 kB / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1438, allocations: 4 kB / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1438, allocations: 7.953 kB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1439, allocations: 4 kB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.144, allocations: 31.91 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.144, allocations: 8 kB / 334.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.8e-05/0.1441, allocations: 31.78 kB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.1442, allocations: 8.281 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.0001551/0.1443, allocations: 164.4 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.1443, allocations: 15.75 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003124/0.1447, allocations: 194.7 kB / 335.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1447, allocations: 11.89 kB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1447, allocations: 0 / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1447, allocations: 0 / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007356/0.1454, allocations: 0.5993 MB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1455, allocations: 0 / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.223e-05/0.1455, allocations: 19.92 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1455, allocations: 0 / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.1456, allocations: 8 kB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1456, allocations: 0 / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1456, allocations: 0 / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.1459, allocations: 275.2 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.146, allocations: 92.91 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.146, allocations: 4 kB / 336.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.1461, allocations: 4 kB / 336.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.1462, allocations: 27.95 kB / 336.2 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.1462, allocations: 8 kB / 336.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.893e-05/0.1463, allocations: 95.27 kB / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1463, allocations: 0 / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002875/0.1466, allocations: 59.75 kB / 336.4 MB, free: 11.6 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.0001562/0.1467, allocations: 111.1 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003036/0.147, allocations: 179.8 kB / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1471, allocations: 0 / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.1472, allocations: 79.84 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.1474, allocations: 16.56 kB / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005769/0.148, allocations: 395.8 kB / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.1483, allocations: 0.7406 MB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.925e-05/0.1484, allocations: 33.92 kB / 337.9 MB, free: 10 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.993e-05/0.1484, allocations: 19.44 kB / 337.9 MB, free: 9.984 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1484, allocations: 4 kB / 338 MB, free: 9.98 MB / 286.1 MB Notification: Performance of Templates: time 0.004802/0.1532, allocations: 1.647 MB / 339.6 MB, free: 8.336 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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