Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.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_trunk_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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, 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.349/1.349, allocations: 226.8 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 105.5 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008767/0.0008768, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.245, allocations: 50.43 MB / 407 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.4824/0.7275, allocations: 262.9 MB / 0.6542 GB, free: 12.82 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02224/0.7498, allocations: 13.82 MB / 0.6677 GB, free: 14.96 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003021/0.7528, allocations: 79.44 kB / 0.6678 GB, free: 14.88 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003171/0.7561, allocations: 0.9991 MB / 0.6688 GB, free: 13.88 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.7695, allocations: 4.823 MB / 0.6735 GB, free: 9.039 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0134/0.7829, allocations: 5.238 MB / 0.6786 GB, free: 3.816 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.2822/1.065, allocations: 11.4 MB / 0.6897 GB, free: 4.84 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003932/1.069, allocations: 1.935 MB / 0.6916 GB, free: 4.703 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01148/1.081, allocations: 4.928 MB / 0.6965 GB, free: 4.66 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00654/1.087, allocations: 3.265 MB / 0.6996 GB, free: 4.641 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/1.088, allocations: 180.6 kB / 0.6998 GB, free: 4.641 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0173/1.106, allocations: 10.14 MB / 0.7097 GB, free: 4.637 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003284/1.109, allocations: 1.683 MB / 0.7114 GB, free: 4.508 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00372/1.113, allocations: 1.884 MB / 0.7132 GB, free: 3.996 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.019/1.132, allocations: 10.03 MB / 0.723 GB, free: 3.184 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/1.132, allocations: 3.984 kB / 0.723 GB, free: 3.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.974e-06/1.132, allocations: 4 kB / 0.723 GB, free: 3.176 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002041/1.132, allocations: 0 / 0.723 GB, free: 3.176 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.01542/1.147, allocations: 5.288 MB / 0.7282 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/1.148, allocations: 13.69 kB / 0.7282 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001402/1.149, allocations: 413.6 kB / 0.7286 GB, free: 16.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005732/1.155, allocations: 2.752 MB / 0.7313 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002482/1.155, allocations: 360.4 kB / 0.7316 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005489/1.155, allocations: 290.5 kB / 0.7319 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008094/1.164, allocations: 5.411 MB / 0.7372 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-05/1.164, allocations: 11.56 kB / 0.7372 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003602/1.164, allocations: 121.8 kB / 0.7373 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004216/1.164, allocations: 413.6 kB / 0.7377 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008327/1.173, allocations: 5.684 MB / 0.7432 GB, free: 9.719 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.03256/1.205, allocations: 21.96 MB / 0.7647 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006332/1.212, allocations: 3.69 MB / 0.7683 GB, free: 3.961 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/1.215, allocations: 2.301 MB / 0.7705 GB, free: 2.438 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002646/1.218, allocations: 3.227 MB / 0.7737 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004764/1.223, allocations: 2.691 MB / 0.7763 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001574/1.225, allocations: 280.7 kB / 0.7766 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=317): time 5.45e-06/1.225, allocations: 3.938 kB / 0.7766 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=377): time 0.1236/1.348, allocations: 32.24 MB / 0.8081 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00027/1.348, allocations: 479.9 kB / 0.8085 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00382/1.352, allocations: 2.174 MB / 0.8107 GB, free: 8.977 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001131/1.353, allocations: 101.7 kB / 0.8108 GB, free: 8.871 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001297/1.355, allocations: 1.31 MB / 0.812 GB, free: 7.555 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002077/1.357, allocations: 1.327 MB / 0.8133 GB, free: 6.238 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003736/1.361, allocations: 0.8578 MB / 0.8142 GB, free: 5.367 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001058/1.361, allocations: 305.1 kB / 0.8145 GB, free: 5.066 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006708/1.367, allocations: 2.989 MB / 0.8174 GB, free: 2.055 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007392/1.375, allocations: 4.007 MB / 0.8213 GB, free: 13.64 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01407/1.389, allocations: 7.138 MB / 0.8283 GB, free: 6.215 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.127e-05/1.389, allocations: 8 kB / 0.8283 GB, free: 6.207 MB / 0.573 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02716/1.416, allocations: 9.697 MB / 0.8377 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001445/1.416, allocations: 101.1 kB / 0.8378 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.38e-05/1.417, allocations: 28 kB / 0.8379 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/1.427, allocations: 2.648 MB / 0.8404 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004861/1.432, allocations: 0.9342 MB / 0.8414 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/1.443, allocations: 6.656 MB / 0.8479 GB, free: 2.145 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005591/1.449, allocations: 0.5169 MB / 0.8484 GB, free: 1.629 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001331/1.45, allocations: 231.9 kB / 0.8486 GB, free: 1.402 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.009033/1.459, allocations: 3.688 MB / 0.8522 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007681/1.467, allocations: 3.9 MB / 0.856 GB, free: 9.395 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01496/1.482, allocations: 6.928 MB / 0.8628 GB, free: 2.176 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.817e-05/1.482, allocations: 11.94 kB / 0.8628 GB, free: 2.164 MB / 0.6042 GB Notification: Performance of matching and sorting (n=541) (initialization_lambda0): time 0.02933/1.511, allocations: 9.952 MB / 0.8725 GB, free: 8.316 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.512, allocations: 104 kB / 0.8726 GB, free: 8.199 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-05/1.512, allocations: 24 kB / 0.8726 GB, free: 8.176 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008995/1.521, allocations: 2.443 MB / 0.875 GB, free: 5.719 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004624/1.525, allocations: 0.938 MB / 0.8759 GB, free: 4.836 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009879/1.535, allocations: 6.498 MB / 0.8823 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005909/1.541, allocations: 0.5147 MB / 0.8828 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/1.543, allocations: 223.9 kB / 0.883 GB, free: 13.48 MB / 0.6355 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.002362/1.545, allocations: 452.1 kB / 0.8834 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/1.547, allocations: 312.4 kB / 0.8837 GB, free: 12.78 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0199/1.567, allocations: 8.778 MB / 0.8923 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.242e-05/1.567, allocations: 43.94 kB / 0.8923 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/1.567, allocations: 4 kB / 0.8923 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01503/1.582, allocations: 6.776 MB / 0.8989 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.25/1.832, allocations: 13.1 MB / 0.9117 GB, free: 357.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.611e-05/1.832, allocations: 1.875 kB / 0.9117 GB, free: 357.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006265/1.838, allocations: 0.6949 MB / 0.9124 GB, free: 357.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01902/1.858, allocations: 3.004 MB / 0.9153 GB, free: 357.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001507/1.859, allocations: 169.4 kB / 0.9155 GB, free: 357.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/1.871, allocations: 6.287 MB / 0.9216 GB, free: 354.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.871, allocations: 1.812 kB / 0.9216 GB, free: 354.7 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.05698/1.928, allocations: 19.22 MB / 0.9404 GB, free: 349.1 MB / 0.6511 GB Error: post-optimization module symbolicJacobian (simulation) failed.