Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001016/0.001016, allocations: 109.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 66.56 kB / 306.4 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1433, allocations: 50.53 MB / 357 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004259/0.1476, allocations: 1.77 MB / 358.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008227/0.1485, allocations: 299.1 kB / 359 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1486, allocations: 7.938 kB / 359 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1488, allocations: 23.86 kB / 359.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.157e-05/0.1489, allocations: 3.938 kB / 359.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.1494, allocations: 111.8 kB / 359.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004805/0.1499, allocations: 263.5 kB / 359.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003877/0.1503, allocations: 194.9 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.1504, allocations: 87.7 kB / 359.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.1505, allocations: 103.5 kB / 359.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.1506, allocations: 24 kB / 359.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.281e-05/0.1507, allocations: 32 kB / 359.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.1508, allocations: 59.81 kB / 359.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.1509, allocations: 103.5 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003562/0.1513, allocations: 243.5 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1513, allocations: 0 / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1513, allocations: 0 / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1513, allocations: 0 / 360.3 MB, free: 11.08 MB / 302.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.0008893/0.1522, allocations: 498.5 kB / 360.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.854e-05/0.1523, allocations: 12.03 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.1526, allocations: 36.64 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.1529, allocations: 232 kB / 361 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.153, allocations: 20.94 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.342e-05/0.153, allocations: 24.38 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005394/0.1536, allocations: 274.5 kB / 361.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.1536, allocations: 192 / 361.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.1536, allocations: 11.94 kB / 361.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1536, allocations: 12 kB / 361.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.154, allocations: 165.6 kB / 361.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1553, allocations: 0.9633 MB / 362.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.1557, allocations: 173.4 kB / 362.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.1558, allocations: 93.56 kB / 362.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.1558, allocations: 0 / 362.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003966/0.1562, allocations: 140.3 kB / 362.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.1563, allocations: 4 kB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004815/0.1567, allocations: 221.2 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/0.1568, allocations: 85.11 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.157, allocations: 153.6 kB / 363.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.1571, allocations: 41.69 kB / 363.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1572, allocations: 140.5 kB / 363.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.983e-05/0.1573, allocations: 59.2 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1574, allocations: 81.7 kB / 363.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1576, allocations: 334.8 kB / 364 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1577, allocations: 63.75 kB / 364 MB, free: 7.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.1579, allocations: 140.5 kB / 364.2 MB, free: 6.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.1582, allocations: 193 kB / 364.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1582, allocations: 4 kB / 364.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004084/0.1586, allocations: 249.2 kB / 364.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.1586, allocations: 4 kB / 364.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.1587, allocations: 4 kB / 364.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.714e-05/0.1587, allocations: 4.281 kB / 364.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.1589, allocations: 39.86 kB / 364.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.1589, allocations: 7.984 kB / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.159, allocations: 23.78 kB / 364.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.159, allocations: 16 kB / 364.7 MB, free: 6.281 MB / 302.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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001878/0.1592, allocations: 153.7 kB / 364.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1593, allocations: 15.81 kB / 364.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.47e-05/0.1593, allocations: 20.84 kB / 364.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1594, allocations: 3.938 kB / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.1594, allocations: 8 kB / 364.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1594, allocations: 3.984 kB / 364.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009041/0.1603, allocations: 0.5781 MB / 365.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1603, allocations: 0 / 365.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.1604, allocations: 15.94 kB / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.1604, allocations: 0 / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.1604, allocations: 15.92 kB / 365.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.1604, allocations: 7.938 kB / 365.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1605, allocations: 0 / 365.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004681/0.1609, allocations: 268.1 kB / 365.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/0.161, allocations: 100.8 kB / 365.9 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.1611, allocations: 7.938 kB / 365.9 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-05/0.1611, allocations: 4 kB / 365.9 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.311e-05/0.1612, allocations: 19.97 kB / 365.9 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1613, allocations: 16 kB / 365.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.1614, allocations: 97.66 kB / 366 MB, free: 4.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1614, allocations: 0 / 366 MB, free: 4.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003566/0.1617, allocations: 47.84 kB / 366.1 MB, free: 4.805 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001806/0.1619, allocations: 111.2 kB / 366.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004248/0.1623, allocations: 188.2 kB / 366.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1624, allocations: 8 kB / 366.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.1625, allocations: 78.95 kB / 366.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.1628, allocations: 24 kB / 366.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008528/0.1637, allocations: 404.5 kB / 366.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005917/0.1643, allocations: 0.7365 MB / 367.6 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.1644, allocations: 21.94 kB / 367.6 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.222e-05/0.1645, allocations: 23.44 kB / 367.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1645, allocations: 0 / 367.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of Templates: time 0.005514/0.17, allocations: 1.673 MB / 369.3 MB, free: 1.504 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches