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.001041/0.001041, allocations: 95.39 kB / 16.95 MB, free: 6.105 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.001064/0.001064, allocations: 178.4 kB / 17.84 MB, free: 5.727 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.81/1.81, allocations: 205.4 MB / 224 MB, free: 13.06 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.0004908/0.0004911, allocations: 16 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1275, allocations: 47.58 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002201/0.1297, allocations: 1.402 MB / 329.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005873/0.1304, allocations: 267.2 kB / 330 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1305, allocations: 4 kB / 330 MB, free: 2.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.1306, allocations: 19.8 kB / 330 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.284e-05/0.1307, allocations: 15.86 kB / 330 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.131, allocations: 87.89 kB / 330.1 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003788/0.1314, allocations: 239.5 kB / 330.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003769/0.1318, allocations: 145.9 kB / 330.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1319, allocations: 67.72 kB / 330.6 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.1321, allocations: 75.61 kB / 330.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.1322, allocations: 12 kB / 330.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.875e-05/0.1323, allocations: 19.98 kB / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.053e-05/0.1324, allocations: 39.84 kB / 330.7 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/0.1325, allocations: 53.64 kB / 330.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002964/0.1328, allocations: 159.6 kB / 330.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.162e-05/0.1328, allocations: 0 / 330.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.979e-06/0.1328, allocations: 3.984 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1328, allocations: 0 / 330.9 MB, free: 1.469 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.0009286/0.1338, allocations: 446.1 kB / 331.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.1338, allocations: 11.97 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.571e-05/0.1339, allocations: 23.81 kB / 331.4 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.1343, allocations: 234.7 kB / 331.6 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.826e-05/0.1344, allocations: 20.56 kB / 331.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.1344, allocations: 28 kB / 331.7 MB, free: 0.625 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.1349, allocations: 273.9 kB / 331.9 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.135, allocations: 0 / 331.9 MB, free: 340 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.135, allocations: 12 kB / 332 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.135, allocations: 8 kB / 332 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.1353, allocations: 165.6 kB / 332.1 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.1365, allocations: 0.9713 MB / 333.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.1368, allocations: 159.3 kB / 333.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.1369, allocations: 73.2 kB / 333.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.1369, allocations: 4.188 kB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.1372, allocations: 107.5 kB / 333.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1372, allocations: 0 / 333.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004047/0.1376, allocations: 213.9 kB / 333.6 MB, free: 14.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.1377, allocations: 55.41 kB / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.1378, allocations: 153.6 kB / 333.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.1379, allocations: 37.7 kB / 333.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.138, allocations: 148.4 kB / 334 MB, free: 14.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.991e-05/0.1381, allocations: 59.19 kB / 334.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/0.1381, allocations: 4 kB / 334.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1382, allocations: 326.8 kB / 334.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1383, allocations: 64.61 kB / 334.5 MB, free: 13.67 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.1385, allocations: 141.8 kB / 334.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.1386, allocations: 75.91 kB / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1386, allocations: 0 / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003584/0.139, allocations: 241.3 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.139, allocations: 10.66 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.139, allocations: 0 / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.1391, allocations: 12.22 kB / 334.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.1392, allocations: 43.86 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.1392, allocations: 4 kB / 335 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.1393, allocations: 27.69 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/0.1394, allocations: 16 kB / 335 MB, free: 13.07 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.000153/0.1395, allocations: 148.4 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.1396, allocations: 19.75 kB / 335.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/0.1399, allocations: 190.3 kB / 335.4 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.14, allocations: 11.95 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.14, allocations: 0 / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.14, allocations: 3.984 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.1407, allocations: 0.5877 MB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.1407, allocations: 3.953 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.624e-05/0.1408, allocations: 15.94 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.1408, allocations: 0 / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.1408, allocations: 15.98 kB / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1408, allocations: 0 / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1408, allocations: 0 / 336 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.1411, allocations: 271.2 kB / 336.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.1412, allocations: 96.91 kB / 336.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.1412, allocations: 4 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.168e-05/0.1413, allocations: 4 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.271e-05/0.1414, allocations: 27.95 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1414, allocations: 12 kB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.733e-05/0.1415, allocations: 92.53 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1415, allocations: 0 / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.1418, allocations: 51.84 kB / 336.6 MB, free: 11.43 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.0001694/0.142, allocations: 119.1 kB / 336.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.1423, allocations: 180.2 kB / 336.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1423, allocations: 0 / 336.9 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.1424, allocations: 79.91 kB / 336.9 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.1427, allocations: 16 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005899/0.1433, allocations: 391.7 kB / 337.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.1436, allocations: 0.7367 MB / 338.1 MB, free: 9.863 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.92e-05/0.1437, allocations: 25.94 kB / 338.1 MB, free: 9.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.1437, allocations: 23.44 kB / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1437, allocations: 0 / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of Templates: time 0.004616/0.1484, 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_Variant3.makefile (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) 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