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.001443/0.001443, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001531/0.001531, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.457/1.457, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 55.08 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1384, allocations: 49.44 MB / 350 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003872/0.1423, allocations: 1.478 MB / 351.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009051/0.1432, allocations: 283.2 kB / 351.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.1435, allocations: 4 kB / 351.8 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.1437, allocations: 23.69 kB / 351.8 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.172e-05/0.1438, allocations: 19.8 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.1443, allocations: 107.8 kB / 351.9 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.1448, allocations: 267.5 kB / 352.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003998/0.1452, allocations: 154.4 kB / 352.4 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.1454, allocations: 79.77 kB / 352.4 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1456, allocations: 95.59 kB / 352.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.729e-05/0.1456, allocations: 28 kB / 352.6 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1458, allocations: 31.98 kB / 352.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.1458, allocations: 55.84 kB / 352.6 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.146, allocations: 95.52 kB / 352.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003506/0.1463, allocations: 227.2 kB / 353 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.1463, allocations: 3.938 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1464, allocations: 0 / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1464, allocations: 4 kB / 353 MB, free: 1.496 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.0009656/0.1473, allocations: 486.8 kB / 353.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.1474, allocations: 8.031 kB / 353.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1475, allocations: 24.73 kB / 353.5 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1478, allocations: 220.1 kB / 353.7 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.1479, allocations: 16.94 kB / 353.7 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.1479, allocations: 28.38 kB / 353.7 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.1484, allocations: 244 kB / 354 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1485, allocations: 192 / 354 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.1485, allocations: 19.92 kB / 354 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1485, allocations: 11.98 kB / 354 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.1489, allocations: 157.7 kB / 354.2 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.1501, allocations: 0.7012 MB / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.1504, allocations: 170.8 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.1506, allocations: 76.83 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.1506, allocations: 3.984 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000316/0.1509, allocations: 131.2 kB / 355.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1509, allocations: 0 / 355.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004781/0.1514, allocations: 222.9 kB / 355.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.1515, allocations: 55.41 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1516, allocations: 149.8 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.1517, allocations: 37.7 kB / 355.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.348e-05/0.1518, allocations: 126.1 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.1518, allocations: 59.2 kB / 355.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.152, allocations: 82 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1521, allocations: 326.8 kB / 356.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.1522, allocations: 64.56 kB / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.1524, allocations: 136 kB / 356.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.1526, allocations: 179.2 kB / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1527, allocations: 0 / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003685/0.153, allocations: 249.2 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.1531, allocations: 4 kB / 356.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.1531, allocations: 7.984 kB / 356.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.1531, allocations: 4 kB / 356.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1533, allocations: 23.92 kB / 356.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1533, allocations: 7.938 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.1534, allocations: 23.78 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.1534, allocations: 16.22 kB / 357 MB, free: 13.21 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.0001418/0.1536, allocations: 153.8 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.421e-05/0.1536, allocations: 19.75 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.154, allocations: 194.4 kB / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.154, allocations: 4 kB / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.154, allocations: 0 / 357.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.154, allocations: 3.938 kB / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007484/0.1548, allocations: 0.5644 MB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1548, allocations: 0 / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.52e-05/0.1549, allocations: 19.92 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.1549, allocations: 4 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.1549, allocations: 8 kB / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1549, allocations: 0 / 357.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.1549, allocations: 11.92 kB / 357.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003348/0.1553, allocations: 283.7 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.1553, allocations: 92.86 kB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.1554, allocations: 11.98 kB / 358.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.1555, allocations: 3.984 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.1556, allocations: 27.91 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.1556, allocations: 8 kB / 358.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.057e-05/0.1556, allocations: 98.27 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1556, allocations: 0 / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.156, allocations: 47.84 kB / 358.5 MB, free: 11.57 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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.0001759/0.1561, allocations: 111.2 kB / 358.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003881/0.1565, allocations: 195.9 kB / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1565, allocations: 0 / 358.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.1567, allocations: 87.91 kB / 358.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.157, allocations: 27.92 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006588/0.1577, allocations: 336.1 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.158, allocations: 0.7285 MB / 360 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.752e-05/0.1581, allocations: 25.94 kB / 360 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.1582, allocations: 23.44 kB / 360 MB, free: 9.988 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1582, allocations: 0 / 360 MB, free: 9.988 MB / 302.1 MB Notification: Performance of Templates: time 0.005585/0.1638, allocations: 1.87 MB / 361.9 MB, free: 8.129 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