Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, 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.315/1.315, 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.001083/0.001083, allocations: 106.8 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.001031, allocations: 39.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2761, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.5301/0.8063, allocations: 262.5 MB / 0.6464 GB, free: 5.41 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.02492/0.8312, allocations: 13.75 MB / 0.6599 GB, free: 7.629 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003389/0.8347, allocations: 79.44 kB / 0.6599 GB, free: 7.551 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003325/0.838, allocations: 0.9992 MB / 0.6609 GB, free: 6.547 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01437/0.8524, allocations: 4.794 MB / 0.6656 GB, free: 1.738 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01441/0.8669, allocations: 5.281 MB / 0.6708 GB, free: 12.47 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.8786, allocations: 11.38 MB / 0.6819 GB, free: 1.059 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3586/1.237, allocations: 1.911 MB / 0.6837 GB, free: 4.574 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01665/1.254, allocations: 4.898 MB / 0.6885 GB, free: 4.539 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008981/1.263, allocations: 3.255 MB / 0.6917 GB, free: 4.535 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002079/1.265, allocations: 187.4 kB / 0.6919 GB, free: 4.531 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0226/1.288, allocations: 10.09 MB / 0.7017 GB, free: 4.527 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004151/1.292, allocations: 1.68 MB / 0.7034 GB, free: 4.445 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005425/1.297, allocations: 1.887 MB / 0.7052 GB, free: 3.934 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02248/1.32, allocations: 9.99 MB / 0.715 GB, free: 3.305 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/1.32, allocations: 0 / 0.715 GB, free: 3.305 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.32, allocations: 4 kB / 0.715 GB, free: 3.301 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002199/1.32, allocations: 0 / 0.715 GB, free: 3.301 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.01834/1.339, allocations: 5.268 MB / 0.7201 GB, free: 17.19 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/1.339, allocations: 11.53 kB / 0.7201 GB, free: 17.19 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001867/1.34, allocations: 409.5 kB / 0.7205 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00698/1.347, allocations: 2.716 MB / 0.7232 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003536/1.348, allocations: 358.5 kB / 0.7235 GB, free: 16.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/1.349, allocations: 287.9 kB / 0.7238 GB, free: 16.31 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/1.359, allocations: 5.416 MB / 0.7291 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/1.359, allocations: 11.19 kB / 0.7291 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006087/1.36, allocations: 125.6 kB / 0.7292 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006834/1.361, allocations: 417.4 kB / 0.7296 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0104/1.371, allocations: 5.681 MB / 0.7352 GB, free: 15.13 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0365/1.408, allocations: 21.96 MB / 0.7566 GB, free: 200 kB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008154/1.416, allocations: 3.687 MB / 0.7602 GB, free: 13.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004262/1.42, allocations: 2.308 MB / 0.7625 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003061/1.423, allocations: 3.224 MB / 0.7656 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005432/1.429, allocations: 2.694 MB / 0.7682 GB, free: 6.395 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001985/1.431, allocations: 280.1 kB / 0.7685 GB, free: 6.164 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=317): time 1.84e-05/1.431, allocations: 2.344 kB / 0.7685 GB, free: 6.164 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377): time 0.1239/1.555, allocations: 32.24 MB / 0.8 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002425/1.555, allocations: 486 kB / 0.8004 GB, free: 7.258 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/1.559, allocations: 2.152 MB / 0.8025 GB, free: 5.07 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001056/1.56, allocations: 101.7 kB / 0.8026 GB, free: 4.965 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001314/1.561, allocations: 1.318 MB / 0.8039 GB, free: 3.641 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002001/1.563, allocations: 1.319 MB / 0.8052 GB, free: 2.332 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003377/1.567, allocations: 0.8687 MB / 0.8061 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.277e-05/1.567, allocations: 305.1 kB / 0.8064 GB, free: 1.152 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006466/1.573, allocations: 2.992 MB / 0.8093 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007293/1.581, allocations: 4.009 MB / 0.8132 GB, free: 9.727 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/1.594, allocations: 7.129 MB / 0.8202 GB, free: 2.305 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.275e-05/1.595, allocations: 8 kB / 0.8202 GB, free: 2.297 MB / 0.5573 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02595/1.62, allocations: 9.696 MB / 0.8296 GB, free: 8.699 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001596/1.621, allocations: 105.1 kB / 0.8297 GB, free: 8.578 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.489e-05/1.621, allocations: 24 kB / 0.8298 GB, free: 8.555 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01025/1.631, allocations: 2.645 MB / 0.8323 GB, free: 5.922 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00483/1.636, allocations: 0.9311 MB / 0.8332 GB, free: 5.047 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/1.647, allocations: 6.654 MB / 0.8397 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005616/1.652, allocations: 0.5263 MB / 0.8403 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.654, allocations: 223.9 kB / 0.8405 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008805/1.662, allocations: 3.689 MB / 0.8441 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007467/1.67, allocations: 3.907 MB / 0.8479 GB, free: 5.504 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01409/1.684, allocations: 6.926 MB / 0.8547 GB, free: 14.28 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.365e-05/1.684, allocations: 8 kB / 0.8547 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=541) (initialization_lambda0): time 0.0302/1.714, allocations: 9.948 MB / 0.8644 GB, free: 4.426 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.715, allocations: 99.45 kB / 0.8645 GB, free: 4.312 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.757e-05/1.715, allocations: 28 kB / 0.8645 GB, free: 4.285 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009151/1.724, allocations: 2.452 MB / 0.8669 GB, free: 1.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005191/1.729, allocations: 0.9302 MB / 0.8678 GB, free: 0.9648 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.739, allocations: 6.498 MB / 0.8741 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005825/1.745, allocations: 0.5186 MB / 0.8747 GB, free: 9.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001371/1.746, allocations: 219.9 kB / 0.8749 GB, free: 9.605 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$PRE.numberOfPeople.nextTimeEvent,$whenCondition1,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],numberOfPeople.nextTimeEventScaled,$PRE.numberOfPeople.nextTimeEventScaled,numberOfPeople.nextTimeEvent,PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (500): * Single equations (assignments): 491 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,6), (2,6), (1,6), (2,6), (2,6), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002631/1.749, allocations: 453.1 kB / 0.8753 GB, free: 9.211 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/1.751, allocations: 305.1 kB / 0.8756 GB, free: 8.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02144/1.772, allocations: 8.776 MB / 0.8842 GB, free: 112 kB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.857e-05/1.772, allocations: 51.94 kB / 0.8842 GB, free: 60 kB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.086e-05/1.772, allocations: 0 / 0.8842 GB, free: 60 kB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01497/1.787, allocations: 6.786 MB / 0.8908 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02948/1.817, allocations: 13.08 MB / 0.9036 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.818e-05/1.817, allocations: 0 / 0.9036 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0039/1.821, allocations: 0.6971 MB / 0.9043 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01206/1.833, allocations: 2.995 MB / 0.9072 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001424/1.834, allocations: 175.9 kB / 0.9074 GB, free: 8.246 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009292/1.844, allocations: 6.286 MB / 0.9135 GB, free: 1.824 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.844, allocations: 6.375 kB / 0.9135 GB, free: 1.82 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "ductOut.statesFM[4].T = Modelica.Math.Nonlinear.solveOneNonlinearEquation(function Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.ductOut.Medium.T_phX.f_nonlinear(#(ductOut.statesFM[4].p), #(boundary4.ports[1].h_outflow), #({boundary4.X[1]})), 190.0, 647.0, 1e-13)" 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.2319/2.076, allocations: 19.22 MB / 0.9323 GB, free: 361.1 MB / 0.6511 GB Error: post-optimization module symbolicJacobian (simulation) failed.