Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") translateModel(Modelica.Clocked.Examples.Systems.EngineThrottleControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 108.3 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008297/0.0008297, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2587, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003961/0.2627, allocations: 3.221 MB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.264, allocations: 0.712 MB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.2643, allocations: 11.94 kB / 403.4 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003464/0.2647, allocations: 51.58 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.2648, allocations: 51.55 kB / 403.5 MB, free: 29.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.2654, allocations: 259.8 kB / 403.8 MB, free: 29.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.2658, allocations: 0.5659 MB / 404.3 MB, free: 28.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003777/0.2662, allocations: 321.6 kB / 404.6 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2664, allocations: 183.2 kB / 404.8 MB, free: 28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.2666, allocations: 234.8 kB / 405.1 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.2667, allocations: 32 kB / 405.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.388e-05/0.2668, allocations: 32 kB / 405.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.2669, allocations: 103.6 kB / 405.2 MB, free: 27.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.2671, allocations: 242.6 kB / 405.5 MB, free: 27.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004697/0.2675, allocations: 0.7764 MB / 406.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2676, allocations: 3.938 kB / 406.2 MB, free: 26.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2676, allocations: 0 / 406.2 MB, free: 26.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.2676, allocations: 4 kB / 406.2 MB, free: 26.58 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001197/0.2688, allocations: 0.8207 MB / 407.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.2688, allocations: 8.031 kB / 407.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.248e-05/0.2689, allocations: 56.28 kB / 407.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.2693, allocations: 394.3 kB / 407.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.018e-05/0.2694, allocations: 63.58 kB / 407.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.249e-05/0.2694, allocations: 52.38 kB / 407.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.2706, allocations: 0.8791 MB / 408.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.2707, allocations: 11.84 kB / 408.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.2707, allocations: 20 kB / 408.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.2708, allocations: 15.94 kB / 408.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006431/0.2714, allocations: 363 kB / 408.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.2733, allocations: 1.759 MB / 410.7 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2745, allocations: 0.527 MB / 411.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.2748, allocations: 256.6 kB / 411.4 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.2749, allocations: 20.5 kB / 411.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003743/0.2753, allocations: 201.8 kB / 411.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 2.265e-06/0.2753, allocations: 4 kB / 411.7 MB, free: 20.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001085/0.2764, allocations: 0.5962 MB / 412.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.2765, allocations: 182.2 kB / 412.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.2767, allocations: 258.6 kB / 412.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.2767, allocations: 37.95 kB / 412.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.849e-05/0.2768, allocations: 205 kB / 412.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.566e-05/0.2769, allocations: 130.3 kB / 413 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.277, allocations: 110.3 kB / 413.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.033e-05/0.2771, allocations: 346.8 kB / 413.5 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.2774, allocations: 149.2 kB / 413.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/0.2777, allocations: 411 kB / 414 MB, free: 18.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006195/0.2784, allocations: 0.5697 MB / 414.6 MB, free: 17.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2784, allocations: 0 / 414.6 MB, free: 17.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008343/0.2792, allocations: 0.5907 MB / 415.2 MB, free: 17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.2793, allocations: 12 kB / 415.2 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.2793, allocations: 8 kB / 415.2 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.2793, allocations: 12 kB / 415.2 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004376/0.2797, allocations: 127.8 kB / 415.4 MB, free: 16.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.2798, allocations: 19.92 kB / 415.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.2801, allocations: 71.73 kB / 415.4 MB, free: 16.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.2801, allocations: 32 kB / 415.5 MB, free: 16.73 MB / 298.7 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.0002477/0.2804, allocations: 220.5 kB / 415.7 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.2807, allocations: 233.4 kB / 415.9 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.2813, allocations: 304.4 kB / 416.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2813, allocations: 4 kB / 416.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2813, allocations: 7.938 kB / 416.2 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.2813, allocations: 8.016 kB / 416.2 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009815/0.2823, allocations: 0.8843 MB / 417.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2823, allocations: 0 / 417.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004643/0.2828, allocations: 99.88 kB / 417.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2828, allocations: 0 / 417.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.2828, allocations: 19.98 kB / 417.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.2828, allocations: 4 kB / 417.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2829, allocations: 7.938 kB / 417.3 MB, free: 14.87 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "engine.inductionToPowerDelay.delay.u_buffer[2] = if previous(engine.inductionToPowerDelay.delay.first) then engine.inductionToPowerDelay.delay.u else previous(engine.inductionToPowerDelay.delay.u_buffer[1])" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.2853, allocations: 1.515 MB / 418.8 MB, free: 13.3 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.