Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 111 kB / 21.18 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 209 kB / 24.48 MB, free: 3.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5146,variableFilter="time|engine.cylinderAirCharge.integrator.y|engine.inertia.phi|engine.inertia.w|engine.intakeManifold.P_m|engine.throttleBody.m_ai|engine.torque.tau|engine.angleSensor.phi|engine.speedSensor.w",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 47.91 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2335, allocations: 53.36 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.004859/0.2384, allocations: 3.038 MB / 435.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2398, allocations: 0.7399 MB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.2401, allocations: 11.94 kB / 436.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.2404, allocations: 75.12 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.2406, allocations: 79.25 kB / 436.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006639/0.2412, allocations: 287.6 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006921/0.2419, allocations: 0.6205 MB / 437.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.2423, allocations: 241.2 kB / 437.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002633/0.2426, allocations: 243.2 kB / 437.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.243, allocations: 258.8 kB / 437.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.2431, allocations: 72 kB / 437.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.235e-05/0.2432, allocations: 76 kB / 438 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.2433, allocations: 147.5 kB / 438.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.2436, allocations: 226.9 kB / 438.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009118/0.2445, allocations: 0.8442 MB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2445, allocations: 0 / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2445, allocations: 0 / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.2445, allocations: 7.938 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001464/0.246, allocations: 0.7488 MB / 440 MB, free: 15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.246, allocations: 8.031 kB / 440 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.2461, allocations: 64.56 kB / 440.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.2467, allocations: 336.6 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.2468, allocations: 101.3 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.867e-05/0.2469, allocations: 52.33 kB / 440.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.2486, allocations: 0.9043 MB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.39e-05/0.2486, allocations: 11.88 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.228e-05/0.2487, allocations: 20 kB / 441.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.2487, allocations: 12 kB / 441.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008/0.2495, allocations: 355.1 kB / 441.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.2519, allocations: 1.478 MB / 443.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.2533, allocations: 0.505 MB / 443.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004791/0.2538, allocations: 233.4 kB / 444 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.507e-05/0.2538, allocations: 16.17 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.2542, allocations: 236 kB / 444.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.014e-06/0.2542, allocations: 0 / 444.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.001342/0.2555, allocations: 0.604 MB / 444.9 MB, free: 9.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.2557, allocations: 182.6 kB / 445.1 MB, free: 9.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.2559, allocations: 249.8 kB / 445.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.256, allocations: 33.7 kB / 445.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.2561, allocations: 221.9 kB / 445.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.2563, allocations: 127 kB / 445.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.2564, allocations: 106.3 kB / 445.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2566, allocations: 347 kB / 446.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003301/0.2569, allocations: 161.2 kB / 446.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005511/0.2575, allocations: 433.3 kB / 446.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/0.2583, allocations: 0.5691 MB / 447.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.2584, allocations: 4 kB / 447.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001082/0.2594, allocations: 0.5951 MB / 447.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2595, allocations: 8 kB / 447.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.2595, allocations: 8 kB / 447.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.2595, allocations: 12 kB / 447.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.26, allocations: 131.8 kB / 448 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.26, allocations: 19.92 kB / 448 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.2603, allocations: 51.72 kB / 448.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.2604, allocations: 28 kB / 448.1 MB, free: 6.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 13 ($CLKPRE.engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.changed.y,$CLKPRE.engine.crankshaftPositionEvent.rotationalClock.changed.u,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,$whenCondition1,engine.crankshaftPositionEvent.rotationalClock.less.y,engine.cylinderAirCharge.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 6 (engine.inductionToPowerDelay.delay.first,engine.inductionToPowerDelay.delay.u_buffer[1],engine.crankshaftPositionEvent.rotationalClock.changed.u,speedControl.x_d,speedControl.N,speedControl.N_des) * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0002771/0.2607, allocations: 224.8 kB / 448.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004216/0.2611, allocations: 237.2 kB / 448.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006517/0.2617, allocations: 304.5 kB / 448.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.2617, allocations: 16.02 kB / 448.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2617, allocations: 3.938 kB / 448.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.2618, allocations: 4 kB / 448.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.2629, allocations: 0.7134 MB / 449.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2629, allocations: 4 kB / 449.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005316/0.2635, allocations: 103.8 kB / 449.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.2635, allocations: 4 kB / 449.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.2635, allocations: 12 kB / 449.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.2635, allocations: 4 kB / 449.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2635, allocations: 0 / 449.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.265, allocations: 0.8263 MB / 450.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.265, allocations: 35.7 kB / 450.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.361e-05/0.2651, allocations: 20.06 kB / 450.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002683/0.2654, allocations: 19.98 kB / 450.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.071e-05/0.2654, allocations: 23.95 kB / 450.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.2655, allocations: 12 kB / 450.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.2656, allocations: 169.2 kB / 450.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2656, allocations: 0 / 450.8 MB, free: 3.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004995/0.2661, allocations: 119.7 kB / 451 MB, free: 3.402 MB / 350.1 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.integrator.y,engine.inertia.w,derivative.u) * Number of discrete variables: 10 (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,engine.inductionToPowerDelay.delay.first,engine.crankshaftPositionEvent.rotationalClock.less.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 6 (speedControl.N_des,speedControl.N,speedControl.x_d,engine.crankshaftPositionEvent.rotationalClock.changed.u,engine.inductionToPowerDelay.delay.u_buffer[1],engine.inductionToPowerDelay.delay.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 57 * 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 Backend phase and start with SimCode phase: time 0.0001636/0.2663, allocations: 129.1 kB / 451.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009062/0.2672, allocations: 436.3 kB / 451.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.2672, allocations: 4 kB / 451.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.2675, allocations: 123.8 kB / 451.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006982/0.2682, allocations: 179 kB / 451.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.27, allocations: 1.023 MB / 452.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.2702, allocations: 244.7 kB / 453.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.2704, allocations: 51.25 kB / 453.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.2706, allocations: 35.44 kB / 453.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2706, allocations: 0 / 453.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of Templates: time 0.01001/0.2806, allocations: 4.875 MB / 458 MB, free: 12.32 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/EngineThrottleControl/EngineThrottleControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.552126844995655]