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.001386/0.001386, allocations: 114.9 kB / 17.74 MB, free: 5.324 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.0012/0.0012, allocations: 188.4 kB / 18.67 MB, free: 4.398 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.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 43.92 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2564, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002546/0.259, allocations: 1.478 MB / 402.9 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006139/0.2596, allocations: 273.5 kB / 403.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.652e-05/0.2597, allocations: 7.938 kB / 403.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.2598, allocations: 19.75 kB / 403.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.707e-05/0.2599, allocations: 23.8 kB / 403.2 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.2602, allocations: 111.8 kB / 403.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.2606, allocations: 271.4 kB / 403.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.2608, allocations: 162.4 kB / 403.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.806e-05/0.2609, allocations: 87.7 kB / 403.8 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.2611, allocations: 91.59 kB / 403.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.2611, allocations: 24 kB / 403.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.883e-05/0.2612, allocations: 35.92 kB / 403.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.2613, allocations: 55.84 kB / 404 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.2614, allocations: 99.5 kB / 404.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.2617, allocations: 239.1 kB / 404.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2617, allocations: 4 kB / 404.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2617, allocations: 0 / 404.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.2617, allocations: 11.98 kB / 404.3 MB, free: 5.906 MB / 318.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.0006571/0.2624, allocations: 475.8 kB / 404.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2624, allocations: 8.031 kB / 404.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.2625, allocations: 24.66 kB / 404.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.2628, allocations: 228.1 kB / 405.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.2628, allocations: 20.94 kB / 405.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.2628, allocations: 24.38 kB / 405.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004037/0.2632, allocations: 248 kB / 405.4 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2633, allocations: 4.188 kB / 405.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.2633, allocations: 11.88 kB / 405.4 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.2633, allocations: 4 kB / 405.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.2636, allocations: 161.7 kB / 405.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009487/0.2646, allocations: 0.6933 MB / 406.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.2649, allocations: 170.8 kB / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.265, allocations: 86.45 kB / 406.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.265, allocations: 4 kB / 406.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001816/0.2652, allocations: 115.3 kB / 406.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.2652, allocations: 4 kB / 406.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004156/0.2657, allocations: 219 kB / 406.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2657, allocations: 59.41 kB / 406.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2658, allocations: 148.4 kB / 407 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.2659, allocations: 37.7 kB / 407 MB, free: 3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.288e-05/0.266, allocations: 140.6 kB / 407.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.266, allocations: 63.19 kB / 407.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-05/0.2661, allocations: 70.02 kB / 407.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2663, allocations: 330.8 kB / 407.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2664, allocations: 68.61 kB / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.2666, allocations: 124.1 kB / 407.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.2668, allocations: 175.5 kB / 408 MB, free: 1.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2668, allocations: 0 / 408 MB, free: 1.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003628/0.2672, allocations: 245.2 kB / 408.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2672, allocations: 8 kB / 408.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2672, allocations: 3.938 kB / 408.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2672, allocations: 7.938 kB / 408.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.2674, allocations: 31.92 kB / 408.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.2674, allocations: 4 kB / 408.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.873e-05/0.2675, allocations: 27.73 kB / 408.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.2675, allocations: 8 kB / 408.3 MB, free: 1.645 MB / 318.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.0001582/0.2677, allocations: 165.9 kB / 408.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.2677, allocations: 15.84 kB / 408.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003564/0.2681, allocations: 202.2 kB / 408.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.2681, allocations: 4 kB / 408.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2681, allocations: 0 / 408.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.2681, allocations: 3.984 kB / 408.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.2688, allocations: 0.5569 MB / 409.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2689, allocations: 4 kB / 409.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.7e-05/0.2689, allocations: 19.98 kB / 409.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.269, allocations: 0 / 409.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.269, allocations: 8 kB / 409.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.269, allocations: 0 / 409.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.269, allocations: 7.922 kB / 409.3 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.2693, allocations: 275.2 kB / 409.6 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.2694, allocations: 93 kB / 409.7 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.2694, allocations: 8 kB / 409.7 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.029e-05/0.2695, allocations: 8 kB / 409.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.2696, allocations: 23.91 kB / 409.7 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/0.2696, allocations: 8 kB / 409.7 MB, free: 156 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.052e-05/0.2696, allocations: 91.27 kB / 409.8 MB, free: 64 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2697, allocations: 0 / 409.8 MB, free: 64 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000293/0.27, allocations: 55.83 kB / 409.9 MB, free: 8 kB / 318.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.0001588/0.2701, allocations: 115.2 kB / 410 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003048/0.2704, allocations: 180.1 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2704, allocations: 4 kB / 410.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.2706, allocations: 84.28 kB / 410.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.2709, allocations: 19.98 kB / 410.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.2715, allocations: 349.9 kB / 410.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.2718, allocations: 0.7327 MB / 411.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.185e-05/0.2719, allocations: 27.44 kB / 411.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2719, allocations: 0 / 411.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Templates: time 0.00428/0.2761, allocations: 2.382 MB / 413.7 MB, free: 12.05 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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