Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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 4.0.0+maint.om/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007403/0.0007407, allocations: 94.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.0007407/0.0007407, allocations: 182.2 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002335/0.0002336, allocations: 8 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0866/0.08685, allocations: 50.42 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.639/0.7259, allocations: 201.7 MB / 0.5407 GB, free: 1.219 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.7387, allocations: 10.63 MB / 0.5511 GB, free: 1.016 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009912/0.7398, allocations: 25.59 kB / 0.5511 GB, free: 1.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.7409, allocations: 406.3 kB / 0.5515 GB, free: 1.008 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007239/0.7481, allocations: 2.823 MB / 0.5542 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006144/0.7543, allocations: 2.311 MB / 0.5565 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00364/0.7579, allocations: 3.784 MB / 0.5602 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009722/0.7589, allocations: 0.6557 MB / 0.5608 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005632/0.7646, allocations: 2.495 MB / 0.5633 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.7664, allocations: 1.085 MB / 0.5643 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.7666, allocations: 57.19 kB / 0.5644 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.7782, allocations: 6.452 MB / 0.5707 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009558/0.7792, allocations: 499.1 kB / 0.5712 GB, free: 15.72 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.7802, allocations: 0.5982 MB / 0.5717 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.7925, allocations: 4.681 MB / 0.5763 GB, free: 13.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.7926, allocations: 0 / 0.5763 GB, free: 13.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7926, allocations: 0 / 0.5763 GB, free: 13.91 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.7926, allocations: 0 / 0.5763 GB, free: 13.91 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.004374/0.797, allocations: 1.82 MB / 0.5781 GB, free: 12.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.797, allocations: 13.25 kB / 0.5781 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001823/0.7972, allocations: 154.1 kB / 0.5783 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003796/0.7976, allocations: 126.8 kB / 0.5784 GB, free: 12.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009928/0.7986, allocations: 0.6795 MB / 0.579 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.7987, allocations: 136.7 kB / 0.5792 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.7989, allocations: 88.64 kB / 0.5793 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.8008, allocations: 1.453 MB / 0.5807 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.8009, allocations: 10.31 kB / 0.5807 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/0.801, allocations: 42.08 kB / 0.5807 GB, free: 11.58 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.003e-05/0.8011, allocations: 69.34 kB / 0.5808 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.8031, allocations: 1.467 MB / 0.5822 GB, free: 11.32 MB / 446.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.007365/0.8104, allocations: 6.331 MB / 0.5884 GB, free: 7.133 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.8121, allocations: 0.9901 MB / 0.5894 GB, free: 6.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/0.8128, allocations: 0.5317 MB / 0.5899 GB, free: 6.582 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001286/0.8141, allocations: 1.798 MB / 0.5916 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.8142, allocations: 47.72 kB / 0.5917 GB, free: 4.395 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003471/0.8145, allocations: 102.5 kB / 0.5918 GB, free: 4.309 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 3.607e-06/0.8145, allocations: 0 / 0.5918 GB, free: 4.309 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01533/0.8299, allocations: 4.955 MB / 0.5966 GB, free: 15.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.8299, allocations: 119.8 kB / 0.5967 GB, free: 15.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008798/0.8308, allocations: 0.7699 MB / 0.5975 GB, free: 14.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.877e-05/0.8309, allocations: 45.7 kB / 0.5975 GB, free: 14.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.8312, allocations: 446.1 kB / 0.598 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.8315, allocations: 345.5 kB / 0.5983 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.8316, allocations: 105.7 kB / 0.5984 GB, free: 13.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.8318, allocations: 402.7 kB / 0.5988 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.833, allocations: 0.6155 MB / 0.5994 GB, free: 12.75 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.8344, allocations: 0.9656 MB / 0.6003 GB, free: 11.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/0.8369, allocations: 1.671 MB / 0.602 GB, free: 9.855 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.8369, allocations: 4 kB / 0.602 GB, free: 9.852 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003596/0.8405, allocations: 1.955 MB / 0.6039 GB, free: 7.934 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002661/0.8408, allocations: 451.3 kB / 0.6043 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.8408, allocations: 15.94 kB / 0.6043 GB, free: 7.324 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/0.8424, allocations: 327.2 kB / 0.6046 GB, free: 7.004 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.8435, allocations: 273.7 kB / 0.6049 GB, free: 6.754 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.845, allocations: 0.923 MB / 0.6058 GB, free: 5.812 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009961/0.846, allocations: 111.8 kB / 0.6059 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.8462, allocations: 71.97 kB / 0.606 GB, free: 5.633 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.8462, allocations: 4 kB / 0.606 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003544/0.8497, allocations: 1.831 MB / 0.6078 GB, free: 3.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.8497, allocations: 12 kB / 0.6078 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.8513, allocations: 328.9 kB / 0.6081 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009785/0.8523, allocations: 273.7 kB / 0.6083 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.8539, allocations: 0.9306 MB / 0.6092 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009694/0.8549, allocations: 101.7 kB / 0.6093 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.855, allocations: 67.97 kB / 0.6094 GB, free: 2.156 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0006463/0.8557, allocations: 418.9 kB / 0.6098 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.8559, allocations: 98.81 kB / 0.6099 GB, free: 1.656 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/0.8597, allocations: 1.969 MB / 0.6118 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.8598, allocations: 15.98 kB / 0.6118 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8598, allocations: 0 / 0.6118 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.8598, allocations: 3.984 kB / 0.6118 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00517/0.865, allocations: 3.121 MB / 0.6149 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.865, allocations: 4 kB / 0.6149 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007891/0.8658, allocations: 178.1 kB / 0.6151 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001982/0.8678, allocations: 403.6 kB / 0.6154 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.679e-05/0.8679, allocations: 35.92 kB / 0.6155 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/0.8693, allocations: 0.9024 MB / 0.6164 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8693, allocations: 0 / 0.6164 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00422/0.8735, allocations: 2.407 MB / 0.6187 GB, free: 8.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006008/0.8742, allocations: 339.7 kB / 0.619 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.8743, allocations: 27.98 kB / 0.6191 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009462/0.8753, allocations: 87.78 kB / 0.6191 GB, free: 8.035 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.8754, allocations: 75.36 kB / 0.6192 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.8756, allocations: 55.97 kB / 0.6193 GB, free: 7.91 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007541/0.8763, allocations: 0.5693 MB / 0.6198 GB, free: 7.348 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8763, allocations: 0 / 0.6198 GB, free: 7.348 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003194/0.8795, allocations: 1.124 MB / 0.6209 GB, free: 6.223 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006919/0.8865, allocations: 3.896 MB / 0.6247 GB, free: 2.375 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004822/0.8913, allocations: 2.635 MB / 0.6273 GB, free: 15.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.8913, allocations: 6.234 kB / 0.6273 GB, free: 15.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.8927, allocations: 0.7435 MB / 0.628 GB, free: 15.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.8955, allocations: 0.5252 MB / 0.6286 GB, free: 14.53 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/0.9147, allocations: 12.17 MB / 0.6404 GB, free: 1.875 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007446/0.9155, allocations: 1.12 MB / 0.6415 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002063/0.9176, allocations: 0.711 MB / 0.6422 GB, free: 12 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006612/0.9183, allocations: 410.1 kB / 0.6426 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/0.9183, allocations: 0 / 0.6426 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07931/0.9976, allocations: 48.72 MB / 0.6902 GB, free: 15.34 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004202/0.998, allocations: 269.3 kB / 0.6905 GB, free: 14.99 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.332/4.33, allocations: 0 / 0.6905 GB, free: 14.99 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)