Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0008903/0.0008903, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008717/0.008718, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.625/1.625, allocations: 205.4 MB / 222.4 MB, free: 5.574 MB / 174.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.0004561/0.0004563, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3018, allocations: 47.58 MB / 327 MB, free: 1.516 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.5743/0.8761, allocations: 273.4 MB / 0.5864 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03012/0.9063, allocations: 15.91 MB / 0.6019 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005085/0.9114, allocations: 83.38 kB / 0.602 GB, free: 14.76 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005062/0.9165, allocations: 1.034 MB / 0.603 GB, free: 13.72 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02555/0.9421, allocations: 5.308 MB / 0.6082 GB, free: 8.395 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02571/0.9679, allocations: 5.538 MB / 0.6136 GB, free: 2.844 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01824/0.9861, allocations: 11.38 MB / 0.6247 GB, free: 7.438 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005299/0.9915, allocations: 1.925 MB / 0.6266 GB, free: 5.48 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01574/1.007, allocations: 5.296 MB / 0.6317 GB, free: 172 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3237/1.331, allocations: 3.243 MB / 0.6349 GB, free: 7.656 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/1.333, allocations: 175.6 kB / 0.6351 GB, free: 7.656 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02428/1.357, allocations: 10.79 MB / 0.6456 GB, free: 7.656 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004426/1.361, allocations: 1.668 MB / 0.6472 GB, free: 7.656 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006361/1.368, allocations: 1.903 MB / 0.6491 GB, free: 7.625 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02973/1.397, allocations: 10.41 MB / 0.6593 GB, free: 7.227 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/1.397, allocations: 0 / 0.6593 GB, free: 7.227 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.394e-06/1.398, allocations: 0.75 kB / 0.6593 GB, free: 7.227 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0002268/1.398, allocations: 0 / 0.6593 GB, free: 7.227 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.01487/1.413, allocations: 4.697 MB / 0.6638 GB, free: 5.289 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.413, allocations: 10.5 kB / 0.6639 GB, free: 5.289 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002407/1.415, allocations: 411.6 kB / 0.6643 GB, free: 5.102 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007302/1.422, allocations: 2.73 MB / 0.6669 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000338/1.423, allocations: 355 kB / 0.6673 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/1.424, allocations: 289.1 kB / 0.6675 GB, free: 4.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/1.434, allocations: 5.431 MB / 0.6728 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.915e-05/1.434, allocations: 10 kB / 0.6728 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004391/1.434, allocations: 130.3 kB / 0.673 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003897/1.435, allocations: 408.6 kB / 0.6734 GB, free: 3.914 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/1.446, allocations: 5.704 MB / 0.6789 GB, free: 3.773 MB / 478.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.0352/1.481, allocations: 22.03 MB / 0.7004 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005729/1.487, allocations: 3.738 MB / 0.7041 GB, free: 5.336 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002951/1.49, allocations: 2.309 MB / 0.7063 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003015/1.493, allocations: 3.846 MB / 0.7101 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004257/1.497, allocations: 2.712 MB / 0.7128 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00148/1.499, allocations: 279.9 kB / 0.713 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=317): time 6.612e-06/1.499, allocations: 0 / 0.713 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=377): time 0.1204/1.619, allocations: 33.63 MB / 0.7459 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002397/1.619, allocations: 487.5 kB / 0.7463 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003166/1.622, allocations: 2.222 MB / 0.7485 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001075/1.624, allocations: 97.7 kB / 0.7486 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001221/1.625, allocations: 1.335 MB / 0.7499 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002075/1.627, allocations: 1.322 MB / 0.7512 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008429/1.628, allocations: 350.8 kB / 0.7515 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001059/1.628, allocations: 311.4 kB / 0.7518 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00587/1.634, allocations: 2.998 MB / 0.7547 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007271/1.641, allocations: 4.047 MB / 0.7587 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/1.655, allocations: 7.205 MB / 0.7657 GB, free: 13.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.51e-05/1.655, allocations: 8 kB / 0.7657 GB, free: 13.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=541) (initialization): time 0.02507/1.68, allocations: 9.915 MB / 0.7754 GB, free: 3.652 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008086/1.681, allocations: 0.9492 MB / 0.7763 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/1.681, allocations: 24 kB / 0.7764 GB, free: 2.309 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/1.692, allocations: 2.782 MB / 0.7791 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004811/1.697, allocations: 0.9388 MB / 0.78 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/1.707, allocations: 6.751 MB / 0.7866 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00577/1.713, allocations: 0.5303 MB / 0.7871 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009476/1.714, allocations: 243.9 kB / 0.7873 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.714, allocations: 4 kB / 0.7874 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02662/1.741, allocations: 9.95 MB / 0.7971 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-05/1.741, allocations: 24 kB / 0.7971 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/1.751, allocations: 2.589 MB / 0.7996 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004763/1.756, allocations: 0.94 MB / 0.8005 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/1.766, allocations: 6.589 MB / 0.807 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005474/1.772, allocations: 0.5186 MB / 0.8075 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009744/1.773, allocations: 239.9 kB / 0.8077 GB, free: 2.227 MB / 0.5762 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.003051/1.776, allocations: 1.114 MB / 0.8088 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008791/1.777, allocations: 308.3 kB / 0.8091 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01783/1.794, allocations: 8.788 MB / 0.8177 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.355e-05/1.795, allocations: 48 kB / 0.8177 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.795, allocations: 3.938 kB / 0.8177 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01355/1.808, allocations: 6.891 MB / 0.8245 GB, free: 0.9961 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02886/1.837, allocations: 13.46 MB / 0.8376 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.837, allocations: 0 / 0.8376 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003649/1.841, allocations: 0.7049 MB / 0.8383 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2028/2.044, allocations: 3.15 MB / 0.8414 GB, free: 333.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001386/2.045, allocations: 178.9 kB / 0.8415 GB, free: 333.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009304/2.054, allocations: 6.373 MB / 0.8478 GB, free: 330 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/2.054, allocations: 2 kB / 0.8478 GB, free: 330 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02277/2.077, allocations: 11.11 MB / 0.8586 GB, free: 327 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003297/2.08, allocations: 1.064 MB / 0.8596 GB, free: 326.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001122/2.082, allocations: 131.5 kB / 0.8598 GB, free: 326.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00415/2.086, allocations: 421.3 kB / 0.8602 GB, free: 326.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006195/2.086, allocations: 270.2 kB / 0.8604 GB, free: 326.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003974/2.087, allocations: 188.9 kB / 0.8606 GB, free: 326.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002076/2.089, allocations: 1.537 MB / 0.8621 GB, free: 325.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.513e-06/2.089, allocations: 0 / 0.8621 GB, free: 325.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01065/2.1, allocations: 2.988 MB / 0.865 GB, free: 325.7 MB / 0.6075 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.007808/2.107, allocations: 2.25 MB / 0.8672 GB, free: 325.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02371/2.131, allocations: 11.5 MB / 0.8785 GB, free: 320.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.558e-05/2.131, allocations: 8.156 kB / 0.8785 GB, free: 320.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007703/2.139, allocations: 3.57 MB / 0.8819 GB, free: 316.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008856/2.148, allocations: 1.509 MB / 0.8834 GB, free: 315.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/2.166, allocations: 11.96 MB / 0.8951 GB, free: 303.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001745/2.168, allocations: 2.427 MB / 0.8975 GB, free: 300.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.008135/2.176, allocations: 2.577 MB / 0.9 GB, free: 298.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/2.178, allocations: 355.3 kB / 0.9003 GB, free: 297.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.332e-06/2.178, allocations: 0 / 0.9003 GB, free: 297.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1441/2.322, allocations: 118.3 MB / 1.016 GB, free: 179.4 MB / 0.6075 GB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)