Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.00162/0.00162, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001509/0.00151, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 42.16 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1314, allocations: 49.45 MB / 349.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00309/0.1346, allocations: 1.559 MB / 351.1 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.1353, allocations: 295.2 kB / 351.4 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.1354, allocations: 3.938 kB / 351.4 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1356, allocations: 23.8 kB / 351.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.712e-05/0.1357, allocations: 15.92 kB / 351.5 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/0.1361, allocations: 87.91 kB / 351.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.1364, allocations: 263.5 kB / 351.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003193/0.1368, allocations: 170.3 kB / 352 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.736e-05/0.1369, allocations: 79.78 kB / 352 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.137, allocations: 103.5 kB / 352.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/0.1371, allocations: 24 kB / 352.2 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.09e-05/0.1372, allocations: 27.98 kB / 352.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.828e-05/0.1372, allocations: 47.91 kB / 352.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.1374, allocations: 99.52 kB / 352.3 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.1377, allocations: 227.2 kB / 352.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1377, allocations: 0 / 352.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1377, allocations: 4 kB / 352.6 MB, free: 1.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1377, allocations: 0 / 352.6 MB, free: 1.758 MB / 286.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.0007826/0.1385, allocations: 490.8 kB / 353 MB, free: 1.223 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.1385, allocations: 8.031 kB / 353.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.775e-05/0.1386, allocations: 20.75 kB / 353.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1389, allocations: 228 kB / 353.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.1389, allocations: 20.94 kB / 353.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.139, allocations: 32.36 kB / 353.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.1395, allocations: 236 kB / 353.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1395, allocations: 4.125 kB / 353.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.1395, allocations: 19.92 kB / 353.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1396, allocations: 4 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.1399, allocations: 161.6 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.1409, allocations: 0.6934 MB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1412, allocations: 178.7 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.1414, allocations: 88.86 kB / 354.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.1414, allocations: 0 / 354.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.1416, allocations: 115.3 kB / 354.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.542e-06/0.1417, allocations: 0 / 354.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004759/0.1421, allocations: 228.9 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.1422, allocations: 55.41 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.1423, allocations: 155.9 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.1424, allocations: 37.7 kB / 355.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.56e-05/0.1425, allocations: 128.6 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.65e-05/0.1425, allocations: 59.19 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1426, allocations: 82 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1428, allocations: 322.8 kB / 355.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.1429, allocations: 60.62 kB / 355.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.1431, allocations: 132.1 kB / 356.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.1433, allocations: 183.1 kB / 356.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1433, allocations: 0 / 356.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003768/0.1437, allocations: 249.2 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1438, allocations: 4 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1438, allocations: 7.938 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1438, allocations: 4 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.1439, allocations: 28.14 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.144, allocations: 4 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.1441, allocations: 27.78 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.1441, allocations: 19.92 kB / 356.6 MB, free: 13.46 MB / 302.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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001568/0.1443, allocations: 153.8 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1443, allocations: 15.75 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003808/0.1447, allocations: 202.3 kB / 356.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1447, allocations: 8 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1447, allocations: 0 / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1447, allocations: 0 / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007431/0.1455, allocations: 0.5605 MB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1455, allocations: 4 kB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.711e-05/0.1456, allocations: 15.98 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1456, allocations: 0 / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.1456, allocations: 7.938 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1456, allocations: 8 kB / 357.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1456, allocations: 3.938 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.146, allocations: 279.6 kB / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.146, allocations: 88.95 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.1461, allocations: 8 kB / 357.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.824e-05/0.1462, allocations: 7.984 kB / 357.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-05/0.1463, allocations: 23.91 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.1463, allocations: 16 kB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.205e-05/0.1464, allocations: 91.27 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1464, allocations: 0 / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003073/0.1467, allocations: 51.84 kB / 358.1 MB, free: 11.82 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001681/0.1469, allocations: 107.2 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003931/0.1473, allocations: 191.7 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1473, allocations: 448 / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.1474, allocations: 91.91 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.1477, allocations: 23.23 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000662/0.1484, allocations: 399.6 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1487, allocations: 0.7324 MB / 359.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.006e-05/0.1488, allocations: 29.92 kB / 359.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.588e-05/0.1489, allocations: 23.38 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1489, allocations: 4 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Templates: time 0.005628/0.1545, allocations: 1.822 MB / 361.5 MB, free: 8.375 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches