Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.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.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001566, 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.493/1.493, allocations: 222.9 MB / 240.9 MB, free: 10.97 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.0009807/0.0009807, allocations: 106.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008382/0.0008382, allocations: 43.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2601, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002694/0.2629, allocations: 2.258 MB / 401.7 MB, free: 31.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007257/0.2636, allocations: 0.5796 MB / 402.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.2637, allocations: 4 kB / 402.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.69e-05/0.2638, allocations: 15.8 kB / 402.3 MB, free: 30.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.264, allocations: 71.59 kB / 402.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.2643, allocations: 55.89 kB / 402.5 MB, free: 30.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.2645, allocations: 263.1 kB / 402.7 MB, free: 30.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2646, allocations: 64.94 kB / 402.8 MB, free: 30.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.2647, allocations: 111.4 kB / 402.9 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.2649, allocations: 143.2 kB / 403 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.2649, allocations: 12 kB / 403 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.167e-05/0.265, allocations: 19.94 kB / 403.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.265, allocations: 51.7 kB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.245e-05/0.2651, allocations: 127.1 kB / 403.2 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.2653, allocations: 240.5 kB / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2653, allocations: 0 / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.578e-06/0.2653, allocations: 0 / 403.5 MB, free: 29.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.2653, allocations: 3.938 kB / 403.5 MB, free: 29.34 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009244/0.2663, allocations: 0.6114 MB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.2663, allocations: 8.031 kB / 404.1 MB, free: 28.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.2664, allocations: 32.56 kB / 404.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.2666, allocations: 320.3 kB / 404.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.2667, allocations: 20.41 kB / 404.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.2667, allocations: 15.91 kB / 404.5 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.2672, allocations: 363.6 kB / 404.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.2672, allocations: 0 / 404.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.2672, allocations: 8 kB / 404.8 MB, free: 27.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2672, allocations: 3.938 kB / 404.8 MB, free: 27.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.2674, allocations: 91.95 kB / 404.9 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005136/0.2679, allocations: 0.5249 MB / 405.4 MB, free: 27.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005672/0.2685, allocations: 318.5 kB / 405.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2687, allocations: 134.6 kB / 405.9 MB, free: 26.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.2687, allocations: 7.938 kB / 405.9 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2688, allocations: 42.55 kB / 405.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.462e-06/0.2688, allocations: 4 kB / 405.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001792/0.2706, allocations: 1.333 MB / 407.3 MB, free: 25.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.2706, allocations: 134.9 kB / 407.4 MB, free: 25.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.2709, allocations: 328.6 kB / 407.7 MB, free: 24.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.2709, allocations: 29.7 kB / 407.8 MB, free: 24.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.408e-05/0.271, allocations: 149 kB / 407.9 MB, free: 24.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.271, allocations: 47.53 kB / 408 MB, free: 24.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.2711, allocations: 74.08 kB / 408 MB, free: 24.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.98e-05/0.2712, allocations: 346.8 kB / 408.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.2713, allocations: 72.83 kB / 408.4 MB, free: 24.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.2715, allocations: 322.8 kB / 408.7 MB, free: 23.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.2718, allocations: 413 kB / 409.2 MB, free: 23.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2718, allocations: 3.938 kB / 409.2 MB, free: 23.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004847/0.2723, allocations: 409.4 kB / 409.6 MB, free: 22.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.2723, allocations: 8 kB / 409.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2723, allocations: 8 kB / 409.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.2723, allocations: 16.03 kB / 409.6 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.2726, allocations: 91.84 kB / 409.7 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.2726, allocations: 19.92 kB / 409.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.2728, allocations: 27.84 kB / 409.7 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.2728, allocations: 20 kB / 409.7 MB, free: 22.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0001199/0.2729, allocations: 173.6 kB / 409.9 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000371/0.2733, allocations: 297.7 kB / 410.2 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005127/0.2738, allocations: 383.1 kB / 410.6 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2739, allocations: 4 kB / 410.6 MB, free: 21.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2739, allocations: 3.984 kB / 410.6 MB, free: 21.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2739, allocations: 4 kB / 410.6 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.2742, allocations: 325.2 kB / 410.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2742, allocations: 0 / 410.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.2747, allocations: 127.8 kB / 411 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2747, allocations: 0 / 411 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.2747, allocations: 15.98 kB / 411 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.2747, allocations: 4 kB / 411.1 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2747, allocations: 0 / 411.1 MB, free: 21.08 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 "invMixingUnit.T = (if firstTick() then 0.0 else previous($DER.invMixingUnit.T)) * interval() + previous(invMixingUnit.T)" 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.001377/0.2761, allocations: 1.224 MB / 412.3 MB, free: 19.8 MB / 298.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.