Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") translateModel(Modelica_Synchronous.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|angleSensor.phi|speedControl.Theta",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009488/0.0009487, allocations: 175.4 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.4 MB / 222.6 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006747/0.0006747, allocations: 86.36 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07874/0.07874, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 16 kB / 392.6 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07501/0.07539, allocations: 50.36 MB / 443 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.EngineThrottleControl): time 0.002968/0.07843, allocations: 2.702 MB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009763/0.07944, allocations: 0.7011 MB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.07966, allocations: 15.88 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.07981, allocations: 39.58 kB / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.07994, allocations: 47.56 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005159/0.08046, allocations: 215.6 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003839/0.08085, allocations: 0.5818 MB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.08121, allocations: 285.4 kB / 447.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.08135, allocations: 155.2 kB / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.08157, allocations: 194.9 kB / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.892e-05/0.08164, allocations: 20 kB / 448 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.08169, allocations: 16 kB / 448 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.928e-05/0.08175, allocations: 79.61 kB / 448 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.394e-05/0.08184, allocations: 117.5 kB / 448.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003891/0.08224, allocations: 0.647 MB / 448.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.08225, allocations: 0 / 448.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08226, allocations: 3.938 kB / 448.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.098e-05/0.0823, allocations: 0 / 448.8 MB, free: 9.969 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001145/0.08345, allocations: 0.7832 MB / 449.6 MB, free: 9.125 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.08349, allocations: 8.031 kB / 449.6 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.949e-05/0.0836, allocations: 63.34 kB / 449.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.084, allocations: 409 kB / 450.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.58e-05/0.0841, allocations: 104.7 kB / 450.2 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.31e-05/0.08418, allocations: 59.98 kB / 450.2 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.08567, allocations: 1.018 MB / 451.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.08571, allocations: 0 / 451.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.08576, allocations: 31.98 kB / 451.3 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.08578, allocations: 12 kB / 451.3 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007712/0.08656, allocations: 409.8 kB / 451.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.08845, allocations: 1.708 MB / 453.4 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.08978, allocations: 0.608 MB / 454 MB, free: 4.504 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.09023, allocations: 291.3 kB / 454.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.818e-05/0.0903, allocations: 20.52 kB / 454.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003817/0.09069, allocations: 238.6 kB / 454.5 MB, free: 3.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=68): time 2.164e-06/0.0907, allocations: 0 / 454.5 MB, free: 3.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=68): time 0.001236/0.09194, allocations: 0.6852 MB / 455.2 MB, free: 3.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.09204, allocations: 207.8 kB / 455.4 MB, free: 2.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.09227, allocations: 278.9 kB / 455.7 MB, free: 2.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.09232, allocations: 37.7 kB / 455.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.743e-05/0.09241, allocations: 213 kB / 455.9 MB, free: 2.461 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.09249, allocations: 138.2 kB / 456.1 MB, free: 2.324 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.09252, allocations: 15.94 kB / 456.1 MB, free: 2.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.688e-05/0.09261, allocations: 366.8 kB / 456.5 MB, free: 1.941 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.09291, allocations: 165.9 kB / 456.6 MB, free: 1.781 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.09331, allocations: 462.6 kB / 457.1 MB, free: 1.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.09367, allocations: 246.1 kB / 457.3 MB, free: 0.957 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.09369, allocations: 4 kB / 457.3 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009238/0.09461, allocations: 0.6451 MB / 458 MB, free: 308 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.09465, allocations: 12.94 kB / 458 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.09466, allocations: 8 kB / 458 MB, free: 288 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.09469, allocations: 20.03 kB / 458 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.09516, allocations: 148.3 kB / 458.1 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.09519, allocations: 19.94 kB / 458.2 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.0955, allocations: 71.42 kB / 458.2 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-05/0.09558, allocations: 36.03 kB / 458.3 MB, free: 15.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 20 (rotationalClock.rotationalClock.changed.y,rotationalClock.rotationalClock.changed.u,$CLKPRE.rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.direction,rotationalClock.rotationalClock.less.y,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (rotationalClock.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des,engine.inductionToPowerDelay.m_a_sampled,engine.crankshaftPositionEvent.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0003006/0.09589, allocations: 229.5 kB / 458.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004714/0.09636, allocations: 269 kB / 458.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/0.09707, allocations: 344.4 kB / 459.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.0971, allocations: 8 kB / 459.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.09711, allocations: 4 kB / 459.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.09712, allocations: 3.984 kB / 459.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.09853, allocations: 0.9781 MB / 460.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.09855, allocations: 0 / 460.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.09912, allocations: 127.8 kB / 460.2 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.09914, allocations: 4 kB / 460.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.09918, allocations: 15.98 kB / 460.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.09919, allocations: 4 kB / 460.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.0992, allocations: 0 / 460.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.1008, allocations: 0.9224 MB / 461.2 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.678e-05/0.1009, allocations: 128.6 kB / 461.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.807e-05/0.101, allocations: 23.94 kB / 461.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.1013, allocations: 31.92 kB / 461.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/0.1014, allocations: 27.95 kB / 461.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.1014, allocations: 16 kB / 461.4 MB, free: 12.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002738/0.1017, allocations: 194 kB / 461.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1017, allocations: 0 / 461.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007705/0.1025, allocations: 123.6 kB / 461.7 MB, free: 12.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (engine.throttleBody.m_ai,engine.intakeManifold.P_m,engine.cylinderAirCharge.m_a_total,engine.inertia1.w,derivative.u) * Number of discrete variables: 18 (engine.crankshaftPositionEvent.direction,engine.crankshaftPositionEvent.direction_changed,engine.crankshaftPositionEvent.rotationalClock.direction,engine.crankshaftPositionEvent.rotationalClock.direction_changed,engine.crankshaftPositionEvent.rotationalClock.cast.y,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.crankshaftPositionEvent.rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.rotationalClock.direction,rotationalClock.rotationalClock.direction_changed,rotationalClock.rotationalClock.cast.y,rotationalClock.rotationalClock.changed.u,rotationalClock.rotationalClock.changed.y,engine.crankshaftPositionEvent.rotationalClock.less.y,rotationalClock.rotationalClock.less.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.m_a_sampled,speedControl.N_des,speedControl.N,speedControl.x_d,rotationalClock.rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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 Backend phase and start with SimCode phase: time 0.0002107/0.1027, allocations: 127.2 kB / 461.8 MB, free: 12.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.1041, allocations: 0.5058 MB / 462.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/0.1041, allocations: 4 kB / 462.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.1045, allocations: 167.9 kB / 462.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.1055, allocations: 193.1 kB / 462.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.1074, allocations: 1.221 MB / 463.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.1078, allocations: 0.8639 MB / 464.8 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.108, allocations: 51.41 kB / 464.8 MB, free: 9.246 MB / 314.7 MB Notification: Performance of SimCode: time 7.51e-07/0.108, allocations: 0 / 464.8 MB, free: 9.246 MB / 314.7 MB Notification: Performance of Templates: time 0.008946/0.1169, allocations: 6.088 MB / 470.9 MB, free: 3.141 MB / 314.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.EngineThrottleControl.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches