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.001065/0.001065, allocations: 94.84 kB / 16.3 MB, free: 5.992 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.001039/0.00104, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.565/1.565, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 5 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1429, allocations: 50.43 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001935/0.1449, allocations: 1.191 MB / 352.3 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006804/0.1456, allocations: 295.1 kB / 352.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1457, allocations: 7.938 kB / 352.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1459, allocations: 19.86 kB / 352.6 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.974e-05/0.1459, allocations: 11.92 kB / 352.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1463, allocations: 83.88 kB / 352.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.1466, allocations: 151.7 kB / 352.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.1469, allocations: 138.2 kB / 353 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.667e-05/0.147, allocations: 63.78 kB / 353.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.1471, allocations: 75.61 kB / 353.1 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.1471, allocations: 12 kB / 353.2 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.1472, allocations: 12 kB / 353.2 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.1473, allocations: 39.89 kB / 353.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.581e-05/0.1473, allocations: 57.58 kB / 353.3 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.1475, allocations: 159.8 kB / 353.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1475, allocations: 0 / 353.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1476, allocations: 0 / 353.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1476, allocations: 0 / 353.4 MB, free: 9.406 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.0006963/0.1483, allocations: 438.5 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.1483, allocations: 12.03 kB / 353.9 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.758e-05/0.1484, allocations: 31.66 kB / 353.9 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.1487, allocations: 218.8 kB / 354.1 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.1487, allocations: 20.56 kB / 354.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.601e-05/0.1488, allocations: 27.94 kB / 354.2 MB, free: 8.586 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004028/0.1492, allocations: 247.4 kB / 354.4 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1492, allocations: 0 / 354.4 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.1492, allocations: 11.98 kB / 354.4 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.1492, allocations: 4 kB / 354.4 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.1495, allocations: 165.6 kB / 354.6 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009931/0.1505, allocations: 0.7131 MB / 355.3 MB, free: 7.387 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.1508, allocations: 159.4 kB / 355.4 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.1508, allocations: 8.125 kB / 355.4 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.1511, allocations: 115.4 kB / 355.6 MB, free: 7.09 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1511, allocations: 4 kB / 355.6 MB, free: 7.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004366/0.1515, allocations: 216.2 kB / 355.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.1516, allocations: 59.27 kB / 355.8 MB, free: 6.801 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.1517, allocations: 149.9 kB / 356 MB, free: 6.641 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.1517, allocations: 37.7 kB / 356 MB, free: 6.598 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.963e-05/0.1518, allocations: 128.6 kB / 356.1 MB, free: 6.469 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.1519, allocations: 67.19 kB / 356.2 MB, free: 6.402 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.1519, allocations: 4 kB / 356.2 MB, free: 6.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.152, allocations: 334.8 kB / 356.5 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1521, allocations: 60.62 kB / 356.6 MB, free: 6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.1523, allocations: 124.1 kB / 356.7 MB, free: 5.855 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.1525, allocations: 68.52 kB / 356.8 MB, free: 5.789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1525, allocations: 3.953 kB / 356.8 MB, free: 5.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004391/0.1529, allocations: 241.2 kB / 357 MB, free: 5.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.153, allocations: 8 kB / 357 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.153, allocations: 0 / 357 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.153, allocations: 4.219 kB / 357 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1531, allocations: 31.92 kB / 357.1 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.1532, allocations: 11.97 kB / 357.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.1533, allocations: 23.78 kB / 357.1 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.1533, allocations: 19.94 kB / 357.1 MB, free: 5.445 MB / 286.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,$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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.1535, allocations: 149.8 kB / 357.3 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.313e-05/0.1535, allocations: 19.77 kB / 357.3 MB, free: 5.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.1538, allocations: 190.4 kB / 357.5 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1538, allocations: 8 kB / 357.5 MB, free: 5.066 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1539, allocations: 0 / 357.5 MB, free: 5.066 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1539, allocations: 7.922 kB / 357.5 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006921/0.1546, allocations: 0.5687 MB / 358.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1546, allocations: 0 / 358.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.293e-05/0.1547, allocations: 15.94 kB / 358.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1547, allocations: 4 kB / 358.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1547, allocations: 11.98 kB / 358.1 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1547, allocations: 3.938 kB / 358.1 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1547, allocations: 0 / 358.1 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.155, allocations: 283.6 kB / 358.4 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.1551, allocations: 88.95 kB / 358.5 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.1551, allocations: 8 kB / 358.5 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/0.1552, allocations: 15.98 kB / 358.5 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.1553, allocations: 23.91 kB / 358.5 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.1553, allocations: 8 kB / 358.5 MB, free: 3.945 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.47e-05/0.1554, allocations: 97.02 kB / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1554, allocations: 0 / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1558, allocations: 51.84 kB / 358.7 MB, free: 3.801 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 (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 (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.0001982/0.156, allocations: 103.2 kB / 358.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.1563, allocations: 179.8 kB / 358.9 MB, free: 3.516 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1563, allocations: 0 / 358.9 MB, free: 3.516 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.1565, allocations: 87.84 kB / 359 MB, free: 3.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.1567, allocations: 25.91 kB / 359 MB, free: 3.406 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/0.1574, allocations: 379.4 kB / 359.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1578, allocations: 0.7367 MB / 360.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.624e-05/0.1579, allocations: 17.95 kB / 360.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.822e-05/0.158, allocations: 27.36 kB / 360.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of SimCode: time 3.7e-07/0.158, allocations: 0 / 360.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of Templates: time 0.005262/0.1633, allocations: 1.646 MB / 361.8 MB, free: 0.5703 MB / 286.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","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches