Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007715/0.0007716, allocations: 91.25 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007789/0.0007789, allocations: 184.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000517/0.0005173, allocations: 8.328 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1065, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.8515/0.958, allocations: 273.4 MB / 0.5876 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02162/0.9797, allocations: 15.92 MB / 0.6031 GB, free: 440 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003026/0.9827, allocations: 74.22 kB / 0.6032 GB, free: 440 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003203/0.986, allocations: 1.039 MB / 0.6042 GB, free: 416 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01475/1.001, allocations: 5.322 MB / 0.6094 GB, free: 15.19 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01551/1.016, allocations: 5.54 MB / 0.6148 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01244/1.029, allocations: 11.37 MB / 0.6259 GB, free: 5.773 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005089/1.034, allocations: 1.923 MB / 0.6278 GB, free: 3.895 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01409/1.048, allocations: 5.292 MB / 0.633 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008091/1.056, allocations: 3.257 MB / 0.6362 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009537/1.057, allocations: 172 kB / 0.6363 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02183/1.079, allocations: 10.79 MB / 0.6469 GB, free: 2.914 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003525/1.082, allocations: 1.676 MB / 0.6485 GB, free: 1.262 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004406/1.087, allocations: 1.895 MB / 0.6503 GB, free: 15.38 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02639/1.113, allocations: 10.41 MB / 0.6605 GB, free: 5.617 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.113, allocations: 0 / 0.6605 GB, free: 5.617 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.365e-06/1.113, allocations: 0 / 0.6605 GB, free: 5.617 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001775/1.114, allocations: 0 / 0.6605 GB, free: 5.617 MB / 478.1 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.129, allocations: 4.703 MB / 0.6651 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/1.129, allocations: 16.03 kB / 0.6651 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002255/1.131, allocations: 415.4 kB / 0.6655 GB, free: 456 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005773/1.137, allocations: 2.735 MB / 0.6682 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000336/1.137, allocations: 353.4 kB / 0.6685 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006612/1.138, allocations: 286.9 kB / 0.6688 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008788/1.147, allocations: 5.429 MB / 0.6741 GB, free: 7.699 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.472e-05/1.147, allocations: 11.09 kB / 0.6741 GB, free: 7.691 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004005/1.147, allocations: 133.8 kB / 0.6742 GB, free: 7.574 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004677/1.148, allocations: 404.7 kB / 0.6746 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/1.158, allocations: 5.702 MB / 0.6802 GB, free: 1.492 MB / 494.1 MB 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.03716/1.195, allocations: 22.04 MB / 0.7017 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007185/1.203, allocations: 3.743 MB / 0.7054 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/1.206, allocations: 2.316 MB / 0.7076 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003666/1.21, allocations: 3.839 MB / 0.7114 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004914/1.215, allocations: 2.718 MB / 0.714 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001857/1.217, allocations: 280.8 kB / 0.7143 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=317): time 4.879e-06/1.217, allocations: 0 / 0.7143 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of matching and sorting (n=377): time 0.3249/1.542, allocations: 33.61 MB / 0.7471 GB, free: 255.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001729/1.542, allocations: 485.8 kB / 0.7476 GB, free: 255.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/1.546, allocations: 2.233 MB / 0.7498 GB, free: 254.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001525/1.547, allocations: 99.55 kB / 0.7499 GB, free: 254.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001158/1.548, allocations: 1.323 MB / 0.7512 GB, free: 253 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.55, allocations: 1.324 MB / 0.7525 GB, free: 251.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005825/1.551, allocations: 349.9 kB / 0.7528 GB, free: 251.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.515e-05/1.551, allocations: 303.9 kB / 0.7531 GB, free: 251.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005584/1.556, allocations: 3.007 MB / 0.756 GB, free: 249.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006693/1.563, allocations: 4.039 MB / 0.76 GB, free: 247 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.576, allocations: 7.213 MB / 0.767 GB, free: 239.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.334e-05/1.576, allocations: 8 kB / 0.767 GB, free: 239.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02552/1.601, allocations: 9.907 MB / 0.7767 GB, free: 229.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005595/1.602, allocations: 0.9531 MB / 0.7776 GB, free: 228.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.826e-05/1.602, allocations: 28 kB / 0.7776 GB, free: 228.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/1.612, allocations: 2.774 MB / 0.7803 GB, free: 225.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/1.617, allocations: 0.9438 MB / 0.7813 GB, free: 224.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009122/1.626, allocations: 6.747 MB / 0.7879 GB, free: 217.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005229/1.631, allocations: 0.538 MB / 0.7884 GB, free: 216.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/1.632, allocations: 247.9 kB / 0.7886 GB, free: 216.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/1.633, allocations: 3.125 kB / 0.7886 GB, free: 216.7 MB / 0.5294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02644/1.659, allocations: 9.954 MB / 0.7983 GB, free: 206.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.585e-05/1.659, allocations: 24 kB / 0.7984 GB, free: 206.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009441/1.669, allocations: 2.584 MB / 0.8009 GB, free: 204.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004548/1.673, allocations: 0.9361 MB / 0.8018 GB, free: 203.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008836/1.682, allocations: 6.589 MB / 0.8082 GB, free: 196.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005181/1.687, allocations: 0.5264 MB / 0.8088 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.688, allocations: 241.3 kB / 0.809 GB, free: 195.6 MB / 0.5294 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.003578/1.692, allocations: 1.103 MB / 0.8101 GB, free: 194.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001293/1.693, allocations: 312.3 kB / 0.8104 GB, free: 194.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/1.711, allocations: 8.795 MB / 0.8189 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/1.711, allocations: 40 kB / 0.819 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/1.711, allocations: 3.938 kB / 0.819 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01253/1.723, allocations: 6.895 MB / 0.8257 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.749, allocations: 13.46 MB / 0.8389 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/1.749, allocations: 0 / 0.8389 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003274/1.752, allocations: 0.7062 MB / 0.8396 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/1.764, allocations: 3.157 MB / 0.8426 GB, free: 161 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008611/1.765, allocations: 172.7 kB / 0.8428 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00751/1.773, allocations: 6.37 MB / 0.849 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.773, allocations: 4.031 kB / 0.849 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02173/1.795, allocations: 11.11 MB / 0.8599 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002662/1.797, allocations: 1.063 MB / 0.8609 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/1.799, allocations: 135.9 kB / 0.861 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004495/1.803, allocations: 420.5 kB / 0.8614 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009249/1.804, allocations: 262.8 kB / 0.8617 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006786/1.805, allocations: 191.9 kB / 0.8619 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002126/1.807, allocations: 1.536 MB / 0.8634 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.5e-07/1.807, allocations: 0 / 0.8634 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009236/1.816, allocations: 2.988 MB / 0.8663 GB, free: 136.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (373): * Single equations (assignments): 361 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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,7), (2,6), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006194/1.822, allocations: 2.241 MB / 0.8685 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02018/1.843, allocations: 11.5 MB / 0.8797 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.843, allocations: 0.6562 kB / 0.8797 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0066/1.849, allocations: 3.572 MB / 0.8832 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008058/1.857, allocations: 1.507 MB / 0.8847 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.875, allocations: 11.97 MB / 0.8964 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00185/1.877, allocations: 2.419 MB / 0.8987 GB, free: 103.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007342/1.884, allocations: 2.587 MB / 0.9013 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/1.885, allocations: 339.3 kB / 0.9016 GB, free: 100.8 MB / 0.5294 GB Notification: Performance of SimCode: time 6.02e-07/1.885, allocations: 0 / 0.9016 GB, free: 100.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.3122/2.197, allocations: 118.3 MB / 1.017 GB, free: 242.9 MB / 0.5294 GB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)