Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000813/0.000813, allocations: 175.5 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.134/1.134, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007234/0.0007232, allocations: 92.98 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.182, allocations: 47.58 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3199/0.5019, allocations: 194.4 MB / 0.5563 GB, free: 14.42 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.5142, allocations: 12.39 MB / 0.5684 GB, free: 12.23 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009024/0.5151, allocations: 33.56 kB / 0.5684 GB, free: 12.21 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.5162, allocations: 385 kB / 0.5687 GB, free: 11.99 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.007284/0.5235, allocations: 3.117 MB / 0.5718 GB, free: 10.66 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005267/0.5287, allocations: 2.287 MB / 0.574 GB, free: 9.844 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002716/0.5315, allocations: 3.141 MB / 0.5771 GB, free: 8.758 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009917/0.5325, allocations: 0.6526 MB / 0.5777 GB, free: 8.227 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005847/0.5383, allocations: 2.777 MB / 0.5804 GB, free: 6.062 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.5399, allocations: 1.064 MB / 0.5815 GB, free: 5.207 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002512/0.5402, allocations: 56 kB / 0.5815 GB, free: 5.152 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01019/0.5504, allocations: 6.738 MB / 0.5881 GB, free: 15.9 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006491/0.5511, allocations: 490.1 kB / 0.5886 GB, free: 15.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008683/0.5519, allocations: 0.5793 MB / 0.5891 GB, free: 15.07 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005064/0.557, allocations: 3.41 MB / 0.5925 GB, free: 12.13 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.557, allocations: 0 / 0.5925 GB, free: 12.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.557, allocations: 0 / 0.5925 GB, free: 12.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.62e-05/0.5571, allocations: 0 / 0.5925 GB, free: 12.13 MB / 410.7 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.00416/0.5612, allocations: 1.905 MB / 0.5943 GB, free: 10.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.801e-05/0.5613, allocations: 8.031 kB / 0.5943 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002463/0.5615, allocations: 150.3 kB / 0.5945 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.5619, allocations: 130.6 kB / 0.5946 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.563, allocations: 0.6768 MB / 0.5953 GB, free: 9.453 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.5631, allocations: 136.8 kB / 0.5954 GB, free: 9.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.5633, allocations: 91.25 kB / 0.5955 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.5653, allocations: 1.454 MB / 0.5969 GB, free: 8.176 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.5654, allocations: 3.938 kB / 0.5969 GB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.5655, allocations: 46.14 kB / 0.597 GB, free: 8.156 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.208e-05/0.5656, allocations: 68.47 kB / 0.597 GB, free: 8.094 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002077/0.5677, allocations: 1.466 MB / 0.5985 GB, free: 7.078 MB / 410.7 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.007819/0.5755, allocations: 6.351 MB / 0.6047 GB, free: 1.453 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.5771, allocations: 0.9881 MB / 0.6056 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006741/0.5778, allocations: 0.5205 MB / 0.6061 GB, free: 464 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001424/0.5792, allocations: 2.065 MB / 0.6081 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.5793, allocations: 49.69 kB / 0.6082 GB, free: 13.97 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003549/0.5797, allocations: 107.2 kB / 0.6083 GB, free: 13.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=84): time 3.327e-06/0.5797, allocations: 0 / 0.6083 GB, free: 13.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.01497/0.5946, allocations: 4.955 MB / 0.6131 GB, free: 9.969 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.5947, allocations: 111.8 kB / 0.6132 GB, free: 9.836 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008008/0.5955, allocations: 0.7736 MB / 0.614 GB, free: 9.238 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/0.5956, allocations: 42.39 kB / 0.614 GB, free: 9.203 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.5959, allocations: 445.9 kB / 0.6145 GB, free: 8.887 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.5961, allocations: 352.2 kB / 0.6148 GB, free: 8.594 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.093e-05/0.5962, allocations: 26.06 kB / 0.6148 GB, free: 8.586 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5963, allocations: 406.3 kB / 0.6152 GB, free: 8.219 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.5974, allocations: 0.6091 MB / 0.6158 GB, free: 7.734 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.5987, allocations: 0.9576 MB / 0.6167 GB, free: 6.629 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002382/0.6011, allocations: 1.654 MB / 0.6184 GB, free: 4.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.6011, allocations: 4 kB / 0.6184 GB, free: 4.816 MB / 426.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003332/0.6044, allocations: 1.922 MB / 0.6202 GB, free: 2.875 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002209/0.6047, allocations: 459.1 kB / 0.6207 GB, free: 2.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.6047, allocations: 12 kB / 0.6207 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/0.6062, allocations: 327.4 kB / 0.621 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009871/0.6072, allocations: 275.5 kB / 0.6213 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.6087, allocations: 0.9231 MB / 0.6222 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009664/0.6097, allocations: 109.8 kB / 0.6223 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.6098, allocations: 83.91 kB / 0.6224 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.274e-06/0.6098, allocations: 4 kB / 0.6224 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003209/0.613, allocations: 1.812 MB / 0.6241 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.6131, allocations: 12 kB / 0.6241 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/0.6146, allocations: 327.6 kB / 0.6244 GB, free: 14.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009587/0.6155, allocations: 279.5 kB / 0.6247 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.617, allocations: 0.9182 MB / 0.6256 GB, free: 13.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00092/0.6179, allocations: 107.9 kB / 0.6257 GB, free: 13.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.618, allocations: 71.98 kB / 0.6258 GB, free: 12.98 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000553/0.6186, allocations: 421.2 kB / 0.6262 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.6188, allocations: 98.88 kB / 0.6263 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.6223, allocations: 1.938 MB / 0.6282 GB, free: 10.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.6223, allocations: 8 kB / 0.6282 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.6223, allocations: 7.922 kB / 0.6282 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.6223, allocations: 11.97 kB / 0.6282 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.6271, allocations: 3.033 MB / 0.6312 GB, free: 7.371 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.6271, allocations: 4.188 kB / 0.6312 GB, free: 7.367 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007753/0.6279, allocations: 189.5 kB / 0.6313 GB, free: 7.184 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.6297, allocations: 395.2 kB / 0.6317 GB, free: 6.797 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.561e-05/0.6298, allocations: 35.98 kB / 0.6318 GB, free: 6.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.6311, allocations: 0.888 MB / 0.6326 GB, free: 5.848 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6311, allocations: 3.938 kB / 0.6326 GB, free: 5.844 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003959/0.635, allocations: 2.424 MB / 0.635 GB, free: 3.387 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/0.6355, allocations: 339.7 kB / 0.6353 GB, free: 3.035 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.6357, allocations: 24 kB / 0.6353 GB, free: 3.012 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008776/0.6366, allocations: 87.83 kB / 0.6354 GB, free: 2.926 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.6368, allocations: 80.83 kB / 0.6355 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6369, allocations: 57.72 kB / 0.6356 GB, free: 2.789 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006101/0.6375, allocations: 0.5419 MB / 0.6361 GB, free: 2.254 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6375, allocations: 4 kB / 0.6361 GB, free: 2.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002696/0.6402, allocations: 1.163 MB / 0.6372 GB, free: 1.086 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006675/0.6469, allocations: 4.031 MB / 0.6412 GB, free: 13.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004288/0.6512, allocations: 2.625 MB / 0.6437 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.6512, allocations: 4.438 kB / 0.6437 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.6525, allocations: 0.7322 MB / 0.6444 GB, free: 9.695 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.6549, allocations: 0.5094 MB / 0.6449 GB, free: 9.195 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.6674, allocations: 7.985 MB / 0.6527 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.668, allocations: 1.123 MB / 0.6538 GB, free: 15.72 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007075/0.6687, allocations: 435.3 kB / 0.6543 GB, free: 15.29 MB / 474.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6687, allocations: 0 / 0.6543 GB, free: 15.29 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.188/6.857, allocations: 33.09 MB / 0.6866 GB, free: 195.7 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)