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.00115/0.00115, allocations: 109.2 kB / 17.74 MB, free: 5.336 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.001118/0.001118, allocations: 188.3 kB / 18.68 MB, free: 4.41 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.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009729/0.0009729, allocations: 43.92 kB / 351.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2615, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002524/0.2641, allocations: 1.478 MB / 402.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006451/0.2648, allocations: 281.5 kB / 403.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.549e-05/0.2649, allocations: 0 / 403.1 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.265, allocations: 31.67 kB / 403.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.646e-05/0.2651, allocations: 19.75 kB / 403.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.2655, allocations: 107.8 kB / 403.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.2658, allocations: 267.4 kB / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.2661, allocations: 166.3 kB / 403.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.917e-05/0.2662, allocations: 83.77 kB / 403.8 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.2663, allocations: 91.59 kB / 403.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.211e-05/0.2664, allocations: 24 kB / 403.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.322e-05/0.2664, allocations: 28 kB / 403.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.2665, allocations: 63.81 kB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.2666, allocations: 99.45 kB / 404.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.2669, allocations: 251.1 kB / 404.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2669, allocations: 0 / 404.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2669, allocations: 0 / 404.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.267, allocations: 0 / 404.3 MB, free: 5.902 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.0006686/0.2676, allocations: 475.8 kB / 404.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2677, allocations: 8.031 kB / 404.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.453e-05/0.2677, allocations: 24.66 kB / 404.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.2681, allocations: 228.1 kB / 405.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.2681, allocations: 20.94 kB / 405.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.2681, allocations: 24.38 kB / 405.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.2686, allocations: 248 kB / 405.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2686, allocations: 192 / 405.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.2686, allocations: 15.88 kB / 405.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.2686, allocations: 8 kB / 405.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002937/0.2689, allocations: 153.7 kB / 405.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009648/0.2699, allocations: 0.705 MB / 406.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.2702, allocations: 162.9 kB / 406.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.2704, allocations: 76.83 kB / 406.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.2704, allocations: 8 kB / 406.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.2706, allocations: 123.2 kB / 406.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2706, allocations: 0 / 406.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004319/0.271, allocations: 223 kB / 406.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.2711, allocations: 55.41 kB / 406.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2712, allocations: 144.4 kB / 407 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.2713, allocations: 41.7 kB / 407 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.531e-05/0.2714, allocations: 136.6 kB / 407.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.2714, allocations: 63.19 kB / 407.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.2715, allocations: 74 kB / 407.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2717, allocations: 326.8 kB / 407.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.2718, allocations: 68.56 kB / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.272, allocations: 132.1 kB / 407.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.2722, allocations: 179.5 kB / 408 MB, free: 1.969 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2722, allocations: 3.938 kB / 408 MB, free: 1.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000368/0.2726, allocations: 237.2 kB / 408.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2726, allocations: 8 kB / 408.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.2726, allocations: 3.984 kB / 408.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2727, allocations: 4 kB / 408.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.2728, allocations: 32.14 kB / 408.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.2728, allocations: 11.94 kB / 408.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.573e-05/0.2729, allocations: 23.75 kB / 408.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.273, allocations: 12 kB / 408.3 MB, free: 1.633 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.0001461/0.2731, allocations: 161.6 kB / 408.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.2731, allocations: 11.84 kB / 408.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000351/0.2735, allocations: 202.3 kB / 408.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2735, allocations: 0 / 408.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2735, allocations: 0 / 408.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.332e-05/0.2736, allocations: 89.02 kB / 408.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.2736, allocations: 4 kB / 408.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.474e-05/0.2737, allocations: 15.92 kB / 408.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.2738, allocations: 19.97 kB / 408.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003641/0.2742, allocations: 272.9 kB / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000331/0.2745, allocations: 350.5 kB / 409.4 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001261/0.2746, allocations: 87.89 kB / 409.5 MB, free: 396 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.585e-05/0.2747, allocations: 99.27 kB / 409.6 MB, free: 296 kB / 318.1 MB Notification: Performance of Backend: time 3.01e-07/0.2747, allocations: 0 / 409.6 MB, free: 296 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000518/0.2752, allocations: 194.5 kB / 409.8 MB, free: 96 kB / 318.1 MB Notification: Performance of SimCode: time 0.0007523/0.276, allocations: 0.7306 MB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of Templates: time 0.00559/0.2816, allocations: 2.006 MB / 412.5 MB, free: 13.32 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