Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Systems.EngineThrottleControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001711/0.001711, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 103.6 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009647/0.0009648, allocations: 51.91 kB / 356.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2447, allocations: 50.46 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.EngineThrottleControl): time 0.003675/0.2484, allocations: 3.229 MB / 410.3 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.2496, allocations: 0.7115 MB / 411 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.2498, allocations: 15.94 kB / 411 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.2502, allocations: 55.48 kB / 411.1 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.2503, allocations: 51.56 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.2507, allocations: 259.7 kB / 411.4 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.2511, allocations: 0.5659 MB / 411.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003306/0.2514, allocations: 321.7 kB / 412.2 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.2516, allocations: 187.2 kB / 412.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.2518, allocations: 230.8 kB / 412.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.2519, allocations: 28 kB / 412.7 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.009e-05/0.2519, allocations: 32 kB / 412.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.252, allocations: 107.6 kB / 412.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.2522, allocations: 242.6 kB / 413 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.2526, allocations: 0.7841 MB / 413.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2526, allocations: 4 kB / 413.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2526, allocations: 4 kB / 413.8 MB, free: 21.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2527, allocations: 0 / 413.8 MB, free: 21.03 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.001055/0.2537, allocations: 0.8092 MB / 414.6 MB, free: 20.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2538, allocations: 8.031 kB / 414.7 MB, free: 20.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.929e-05/0.2538, allocations: 56.28 kB / 414.7 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.2542, allocations: 394.2 kB / 415.1 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.2543, allocations: 67.58 kB / 415.2 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.2543, allocations: 60.31 kB / 415.2 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.2555, allocations: 0.8713 MB / 416.1 MB, free: 18.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.2555, allocations: 11.94 kB / 416.1 MB, free: 18.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.074e-05/0.2555, allocations: 20 kB / 416.1 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.2555, allocations: 12 kB / 416.1 MB, free: 18.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006386/0.2562, allocations: 359 kB / 416.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.2579, allocations: 1.759 MB / 418.2 MB, free: 16.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.259, allocations: 0.5246 MB / 418.8 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.2593, allocations: 252.8 kB / 419 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.2594, allocations: 16.75 kB / 419 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003277/0.2597, allocations: 214.2 kB / 419.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=57): time 1.823e-06/0.2597, allocations: 4 kB / 419.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.001022/0.2608, allocations: 0.5923 MB / 419.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.2608, allocations: 190.6 kB / 420 MB, free: 14.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.261, allocations: 254.7 kB / 420.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2611, allocations: 33.7 kB / 420.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.846e-05/0.2611, allocations: 208.9 kB / 420.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.2612, allocations: 126.4 kB / 420.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.2613, allocations: 106.3 kB / 420.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.308e-05/0.2614, allocations: 350.8 kB / 421.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.2617, allocations: 153.2 kB / 421.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.262, allocations: 407 kB / 421.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005728/0.2626, allocations: 0.5599 MB / 422.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.2626, allocations: 4 kB / 422.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007912/0.2634, allocations: 0.5907 MB / 422.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2634, allocations: 12 kB / 422.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.2634, allocations: 8.844 kB / 422.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.2635, allocations: 15.98 kB / 422.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/0.2639, allocations: 131.8 kB / 422.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.2639, allocations: 15.94 kB / 423 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/0.2642, allocations: 63.42 kB / 423 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.2642, allocations: 28 kB / 423.1 MB, free: 11.2 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.0001802/0.2644, allocations: 240.3 kB / 423.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/0.2647, allocations: 233.2 kB / 423.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.2652, allocations: 308.5 kB / 423.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2653, allocations: 8 kB / 423.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2653, allocations: 0 / 423.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2653, allocations: 0 / 423.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008699/0.2662, allocations: 0.8886 MB / 424.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2662, allocations: 0 / 424.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004158/0.2666, allocations: 103.9 kB / 424.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2666, allocations: 7.938 kB / 424.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.2666, allocations: 16 kB / 424.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2666, allocations: 3.984 kB / 424.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2667, allocations: 4 kB / 424.8 MB, free: 9.328 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.002319/0.269, allocations: 1.506 MB / 426.3 MB, free: 7.77 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.