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.001389/0.00139, allocations: 116.2 kB / 17.07 MB, free: 6.004 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.001589/0.001589, allocations: 190.9 kB / 18 MB, free: 5.082 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.558/1.558, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 43.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3962, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002528/0.3988, allocations: 1.48 MB / 402.2 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006532/0.3995, allocations: 281.4 kB / 402.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.847e-05/0.3996, allocations: 4 kB / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.3997, allocations: 23.69 kB / 402.5 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.478e-05/0.3998, allocations: 15.8 kB / 402.5 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.4002, allocations: 111.9 kB / 402.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002908/0.4005, allocations: 271.4 kB / 402.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.4008, allocations: 154.4 kB / 403 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.4009, allocations: 91.75 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.401, allocations: 95.59 kB / 403.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.4011, allocations: 23.94 kB / 403.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.254e-05/0.4011, allocations: 35.98 kB / 403.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.243e-05/0.4012, allocations: 43.91 kB / 403.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.4013, allocations: 99.52 kB / 403.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.4016, allocations: 247.1 kB / 403.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.4016, allocations: 0 / 403.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4016, allocations: 0 / 403.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.4016, allocations: 0 / 403.6 MB, free: 5.891 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.000669/0.4023, allocations: 487.8 kB / 404.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.4024, allocations: 12.03 kB / 404.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.477e-05/0.4024, allocations: 24.66 kB / 404.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.4027, allocations: 220.1 kB / 404.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.4028, allocations: 20.94 kB / 404.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.4028, allocations: 28.38 kB / 404.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000402/0.4032, allocations: 243.9 kB / 404.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.4032, allocations: 4.188 kB / 404.7 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.4033, allocations: 15.94 kB / 404.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.4033, allocations: 4 kB / 404.7 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002896/0.4036, allocations: 161.7 kB / 404.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009792/0.4046, allocations: 0.6972 MB / 405.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.4049, allocations: 170.8 kB / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.405, allocations: 80.83 kB / 405.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.4051, allocations: 4 kB / 405.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.4052, allocations: 115.2 kB / 405.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.4053, allocations: 4 kB / 405.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004206/0.4057, allocations: 213.4 kB / 406.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.4057, allocations: 59.34 kB / 406.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.4059, allocations: 149.9 kB / 406.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.4059, allocations: 33.7 kB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.866e-05/0.406, allocations: 144.5 kB / 406.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.4061, allocations: 59.2 kB / 406.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.762e-05/0.4062, allocations: 74.02 kB / 406.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4063, allocations: 322.8 kB / 406.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.4064, allocations: 64.62 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.4066, allocations: 136 kB / 407.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.4068, allocations: 171.6 kB / 407.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4068, allocations: 3.938 kB / 407.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003794/0.4072, allocations: 249.4 kB / 407.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4072, allocations: 4 kB / 407.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4073, allocations: 4 kB / 407.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.4073, allocations: 4 kB / 407.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.4074, allocations: 27.92 kB / 407.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.4074, allocations: 3.938 kB / 407.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.408e-05/0.4075, allocations: 35.67 kB / 407.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.4076, allocations: 12 kB / 407.6 MB, free: 1.613 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.0001411/0.4077, allocations: 157.7 kB / 407.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.4077, allocations: 19.84 kB / 407.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003513/0.4081, allocations: 202.3 kB / 408 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4081, allocations: 0 / 408 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4081, allocations: 0 / 408 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4081, allocations: 3.984 kB / 408 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007074/0.4089, allocations: 0.5608 MB / 408.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4089, allocations: 0 / 408.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.409, allocations: 27.92 kB / 408.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.409, allocations: 4 kB / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.409, allocations: 0 / 408.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.409, allocations: 4 kB / 408.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4091, allocations: 7.922 kB / 408.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.4094, allocations: 279.2 kB / 408.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.4094, allocations: 89 kB / 409 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.4094, allocations: 8 kB / 409 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.4095, allocations: 4 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.4096, allocations: 27.91 kB / 409 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.4096, allocations: 8 kB / 409 MB, free: 124 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.771e-05/0.4097, allocations: 97.39 kB / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4097, allocations: 0 / 409.1 MB, free: 28 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.41, allocations: 51.83 kB / 409.2 MB, free: 15.98 MB / 334.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.0001603/0.4102, allocations: 107.2 kB / 409.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003181/0.4105, allocations: 192.2 kB / 409.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4105, allocations: 0 / 409.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002231/0.4107, allocations: 88.28 kB / 409.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.411, allocations: 23.97 kB / 409.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006252/0.4117, allocations: 324.2 kB / 409.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.4121, allocations: 0.7402 MB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.498e-05/0.4123, allocations: 25.94 kB / 410.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/0.4123, allocations: 19.44 kB / 410.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4123, allocations: 0 / 410.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Templates: time 0.006072/0.4184, allocations: 1.898 MB / 412.6 MB, free: 12.52 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/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