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.001031/0.001031, allocations: 96.67 kB / 16.65 MB, free: 6.348 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.0009742/0.0009743, allocations: 177.8 kB / 17.56 MB, free: 5.949 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.593/1.593, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 4 kB / 301.4 MB, free: 5.934 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 50.42 MB / 351.8 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001836/0.1347, allocations: 1.224 MB / 353 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007342/0.1355, allocations: 295.1 kB / 353.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.1356, allocations: 4 kB / 353.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1357, allocations: 19.8 kB / 353.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.831e-05/0.1358, allocations: 11.88 kB / 353.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003956/0.1362, allocations: 99.88 kB / 353.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003035/0.1365, allocations: 239.5 kB / 353.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.1368, allocations: 142.2 kB / 353.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.896e-05/0.1369, allocations: 67.77 kB / 353.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.1371, allocations: 83.53 kB / 354 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1371, allocations: 12 kB / 354 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.328e-05/0.1372, allocations: 16 kB / 354 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.927e-05/0.1373, allocations: 35.91 kB / 354.1 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.1374, allocations: 113.2 kB / 354.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.1377, allocations: 199.2 kB / 354.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1378, allocations: 0 / 354.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1378, allocations: 0 / 354.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1378, allocations: 0 / 354.4 MB, free: 0.9453 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.0007333/0.1385, allocations: 439 kB / 354.8 MB, free: 476 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.1386, allocations: 12.02 kB / 354.8 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.871e-05/0.1387, allocations: 24.66 kB / 354.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.139, allocations: 224.1 kB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.139, allocations: 24.88 kB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.1391, allocations: 24.38 kB / 355.1 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.1396, allocations: 244 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1396, allocations: 192 / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.1396, allocations: 19.92 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.1396, allocations: 8 kB / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1399, allocations: 153.7 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.141, allocations: 0.709 MB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.1413, allocations: 158.8 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1415, allocations: 84.92 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1415, allocations: 4 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.1418, allocations: 127.2 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.582e-06/0.1418, allocations: 0 / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004789/0.1423, allocations: 215.6 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1423, allocations: 59.27 kB / 356.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.1425, allocations: 149.8 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.1425, allocations: 37.7 kB / 357 MB, free: 14.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.1426, allocations: 132.6 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.1427, allocations: 59.2 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.1428, allocations: 49.69 kB / 357.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1429, allocations: 334.8 kB / 357.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.143, allocations: 68.56 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.1432, allocations: 124.1 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1435, allocations: 179.2 kB / 358 MB, free: 13.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1435, allocations: 0 / 358 MB, free: 13.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003856/0.1439, allocations: 241.2 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1439, allocations: 8 kB / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1439, allocations: 0 / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.623e-05/0.144, allocations: 4 kB / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.1442, allocations: 39.8 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1442, allocations: 7.984 kB / 358.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.63e-05/0.1443, allocations: 27.97 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.1443, allocations: 16 kB / 358.3 MB, free: 12.72 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.000152/0.1445, allocations: 153.7 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.1445, allocations: 11.84 kB / 358.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003479/0.1449, allocations: 194.3 kB / 358.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1449, allocations: 4 kB / 358.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1449, allocations: 0 / 358.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.1449, allocations: 7.969 kB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000708/0.1456, allocations: 0.5761 MB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1456, allocations: 3.938 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.1457, allocations: 16 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1457, allocations: 0 / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1457, allocations: 7.984 kB / 359.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.1457, allocations: 4 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1458, allocations: 7.938 kB / 359.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.1461, allocations: 275.7 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.895e-05/0.1461, allocations: 92.86 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.1462, allocations: 8 kB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.1462, allocations: 12 kB / 359.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.618e-05/0.1463, allocations: 31.89 kB / 359.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.1464, allocations: 4 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.409e-05/0.1464, allocations: 99.27 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1464, allocations: 0 / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.1467, allocations: 47.84 kB / 359.8 MB, free: 11.07 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.0001577/0.1469, allocations: 107.2 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.1472, allocations: 179.8 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1473, allocations: 448 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.1474, allocations: 83.91 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.1477, allocations: 27.92 kB / 360.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006785/0.1484, allocations: 394.9 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.1487, allocations: 0.7365 MB / 361.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.323e-05/0.1488, allocations: 21.94 kB / 361.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.1489, allocations: 19.44 kB / 361.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1489, allocations: 0 / 361.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Templates: time 0.005318/0.1542, allocations: 1.72 MB / 363.1 MB, free: 7.754 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