Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_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.001046/0.001046, allocations: 97.8 kB / 16.94 MB, free: 5.984 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.001056/0.001056, allocations: 174.4 kB / 17.82 MB, free: 5.652 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.612/1.612, allocations: 205.4 MB / 224 MB, free: 13.18 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.0005206/0.0005209, allocations: 15.98 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1036, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.399/0.5027, allocations: 165.9 MB / 494.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.5206, allocations: 13.42 MB / 0.4959 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.5219, allocations: 27.75 kB / 0.4959 GB, free: 5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.523, allocations: 366.2 kB / 0.4962 GB, free: 4.641 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008455/0.5315, allocations: 2.713 MB / 0.4989 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005504/0.537, allocations: 1.912 MB / 0.5008 GB, free: 8 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002487/0.5395, allocations: 1.439 MB / 0.5022 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009787/0.5405, allocations: 0.6452 MB / 0.5028 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004936/0.5455, allocations: 2.096 MB / 0.5048 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.547, allocations: 0.7518 MB / 0.5056 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.5471, allocations: 56 kB / 0.5056 GB, free: 11 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01025/0.5574, allocations: 5.387 MB / 0.5109 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007708/0.5582, allocations: 446.9 kB / 0.5113 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004484/0.5587, allocations: 241.2 kB / 0.5115 GB, free: 4.926 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006089/0.5648, allocations: 2.99 MB / 0.5145 GB, free: 1.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.5648, allocations: 4 kB / 0.5145 GB, free: 1.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5648, allocations: 0 / 0.5145 GB, free: 1.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.5648, allocations: 4 kB / 0.5145 GB, free: 1.922 MB / 414.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.004255/0.5691, allocations: 1.831 MB / 0.5163 GB, free: 24 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.5691, allocations: 12.03 kB / 0.5163 GB, free: 12 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/0.5693, allocations: 143.6 kB / 0.5164 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003895/0.5697, allocations: 130.7 kB / 0.5165 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.5709, allocations: 0.666 MB / 0.5172 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.5711, allocations: 137.3 kB / 0.5173 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.5712, allocations: 87.98 kB / 0.5174 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.5733, allocations: 1.452 MB / 0.5188 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.5733, allocations: 0 / 0.5188 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.5735, allocations: 40 kB / 0.5189 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.215e-05/0.5736, allocations: 77.89 kB / 0.5189 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002116/0.5757, allocations: 1.46 MB / 0.5204 GB, free: 11.7 MB / 430.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.008497/0.5842, allocations: 6.391 MB / 0.5266 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.586, allocations: 0.9839 MB / 0.5276 GB, free: 3.898 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/0.5874, allocations: 1.734 MB / 0.5293 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.5874, allocations: 43.56 kB / 0.5293 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000483/0.5879, allocations: 106.9 kB / 0.5294 GB, free: 1.637 MB / 430.1 MB Notification: Performance of pre-optimization done (n=84): time 3.216e-06/0.5879, allocations: 0 / 0.5294 GB, free: 1.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.2202/0.8081, allocations: 4.958 MB / 0.5342 GB, free: 161.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.8082, allocations: 113.5 kB / 0.5343 GB, free: 161.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.8095, allocations: 0.7663 MB / 0.5351 GB, free: 161.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.8096, allocations: 46.64 kB / 0.5351 GB, free: 161.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.81, allocations: 457.1 kB / 0.5356 GB, free: 161.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.8103, allocations: 342.9 kB / 0.5359 GB, free: 160.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-05/0.8104, allocations: 23.84 kB / 0.5359 GB, free: 160.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.8106, allocations: 403.1 kB / 0.5363 GB, free: 160.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.8118, allocations: 0.6076 MB / 0.5369 GB, free: 160.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.8135, allocations: 0.9491 MB / 0.5378 GB, free: 159.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.8149, allocations: 0.7919 MB / 0.5386 GB, free: 159.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.8149, allocations: 2.875 kB / 0.5386 GB, free: 159.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003777/0.8187, allocations: 1.924 MB / 0.5405 GB, free: 158.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007787/0.8195, allocations: 4.063 MB / 0.5445 GB, free: 154.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.8195, allocations: 10.62 kB / 0.5445 GB, free: 154.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.8212, allocations: 334.5 kB / 0.5448 GB, free: 154.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.8222, allocations: 274.5 kB / 0.545 GB, free: 154.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.8238, allocations: 0.9258 MB / 0.5459 GB, free: 153.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.825, allocations: 107.5 kB / 0.5461 GB, free: 153.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.8251, allocations: 73.47 kB / 0.5461 GB, free: 153.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.8252, allocations: 6 kB / 0.5461 GB, free: 153.6 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003377/0.8286, allocations: 1.815 MB / 0.5479 GB, free: 152.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.8286, allocations: 11 kB / 0.5479 GB, free: 152.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.83, allocations: 330.5 kB / 0.5482 GB, free: 152.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009862/0.831, allocations: 272.3 kB / 0.5485 GB, free: 152.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.8323, allocations: 0.9291 MB / 0.5494 GB, free: 152.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.8334, allocations: 109.5 kB / 0.5495 GB, free: 152.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.8335, allocations: 70.53 kB / 0.5496 GB, free: 152.1 MB / 430.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 (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.0007262/0.8342, allocations: 419.8 kB / 0.55 GB, free: 151.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.8344, allocations: 101.4 kB / 0.5501 GB, free: 151.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/0.8377, allocations: 1.939 MB / 0.552 GB, free: 151 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.8377, allocations: 15.66 kB / 0.552 GB, free: 151 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.8377, allocations: 3.953 kB / 0.552 GB, free: 151 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.8377, allocations: 6.141 kB / 0.552 GB, free: 151 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00455/0.8423, allocations: 3.046 MB / 0.555 GB, free: 149.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.8423, allocations: 5.062 kB / 0.555 GB, free: 149.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.8431, allocations: 184.1 kB / 0.5551 GB, free: 149.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/0.8448, allocations: 406.5 kB / 0.5555 GB, free: 149.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.102e-05/0.8449, allocations: 35.8 kB / 0.5556 GB, free: 149.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.8461, allocations: 0.8967 MB / 0.5564 GB, free: 148.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.8461, allocations: 8.078 kB / 0.5564 GB, free: 148.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003785/0.8499, allocations: 2.488 MB / 0.5589 GB, free: 147 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006325/0.8506, allocations: 355.3 kB / 0.5592 GB, free: 146.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.8507, allocations: 24 kB / 0.5592 GB, free: 146.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008628/0.8516, allocations: 91.77 kB / 0.5593 GB, free: 146.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.8518, allocations: 76.84 kB / 0.5594 GB, free: 146.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.8519, allocations: 55.97 kB / 0.5594 GB, free: 146.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005778/0.8525, allocations: 0.5497 MB / 0.56 GB, free: 145.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8525, allocations: 0 / 0.56 GB, free: 145.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003004/0.8555, allocations: 1.155 MB / 0.5611 GB, free: 144.8 MB / 430.1 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.006354/0.8618, allocations: 4.484 MB / 0.5655 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004107/0.866, allocations: 2.633 MB / 0.5681 GB, free: 137.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.866, allocations: 2.062 kB / 0.5681 GB, free: 137.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.8672, allocations: 0.7399 MB / 0.5688 GB, free: 137.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/0.8695, allocations: 492.3 kB / 0.5693 GB, free: 136.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007341/0.8768, allocations: 10.88 MB / 0.5799 GB, free: 125.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.8773, allocations: 1.143 MB / 0.581 GB, free: 124.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001882/0.8792, allocations: 0.6055 MB / 0.5816 GB, free: 123.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/0.8797, allocations: 415.3 kB / 0.582 GB, free: 123.3 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.8797, allocations: 0 / 0.582 GB, free: 123.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06487/0.9446, allocations: 48.34 MB / 0.6292 GB, free: 74.91 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/0.9448, allocations: 242.6 kB / 0.6294 GB, free: 74.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.296/4.241, allocations: 0 / 0.6294 GB, free: 74.62 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat