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.0009331/0.0009331, allocations: 92.53 kB / 16.3 MB, free: 5.531 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.0008996/0.0009001, allocations: 184.5 kB / 17.2 MB, free: 5.465 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.366/1.366, allocations: 223.2 MB / 241.1 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002734, allocations: 9.406 kB / 300.8 MB, free: 5.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1121, allocations: 50.42 MB / 351.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4277/0.5398, allocations: 165.9 MB / 0.505 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.5543, allocations: 10.05 MB / 0.5149 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.5557, allocations: 27.75 kB / 0.5149 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.5569, allocations: 366.2 kB / 0.5152 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008034/0.5649, allocations: 2.374 MB / 0.5175 GB, free: 7.246 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005586/0.5705, allocations: 1.9 MB / 0.5194 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002408/0.573, allocations: 1.423 MB / 0.5208 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009067/0.5739, allocations: 0.6393 MB / 0.5214 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00476/0.5786, allocations: 2.104 MB / 0.5235 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.5801, allocations: 0.7557 MB / 0.5242 GB, free: 420 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.5803, allocations: 56 kB / 0.5243 GB, free: 364 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009421/0.5897, allocations: 5.204 MB / 0.5293 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000658/0.5904, allocations: 454.9 kB / 0.5298 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004297/0.5908, allocations: 249.2 kB / 0.53 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005528/0.5964, allocations: 2.915 MB / 0.5329 GB, free: 7.531 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.5964, allocations: 0 / 0.5329 GB, free: 7.531 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5964, allocations: 0 / 0.5329 GB, free: 7.531 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.5964, allocations: 0 / 0.5329 GB, free: 7.531 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.003964/0.6004, allocations: 1.796 MB / 0.5346 GB, free: 5.668 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.6004, allocations: 8.031 kB / 0.5346 GB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002053/0.6006, allocations: 143.6 kB / 0.5348 GB, free: 5.512 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.601, allocations: 138.6 kB / 0.5349 GB, free: 5.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.6022, allocations: 0.666 MB / 0.5355 GB, free: 4.668 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.6023, allocations: 133.4 kB / 0.5357 GB, free: 4.523 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.6024, allocations: 84 kB / 0.5357 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.6045, allocations: 1.448 MB / 0.5372 GB, free: 2.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.6045, allocations: 4.562 kB / 0.5372 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.6047, allocations: 43.94 kB / 0.5372 GB, free: 2.883 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-05/0.6048, allocations: 73.91 kB / 0.5373 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.6069, allocations: 1.464 MB / 0.5387 GB, free: 1.348 MB / 414.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.008303/0.6152, allocations: 6.369 MB / 0.5449 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.6171, allocations: 0.9798 MB / 0.5459 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001933/0.619, allocations: 1.797 MB / 0.5476 GB, free: 7.383 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.289e-05/0.6191, allocations: 43.56 kB / 0.5477 GB, free: 7.332 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007325/0.6198, allocations: 114.8 kB / 0.5478 GB, free: 7.219 MB / 430.1 MB Notification: Performance of pre-optimization done (n=84): time 3.657e-06/0.6198, allocations: 0 / 0.5478 GB, free: 7.219 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0163/0.6361, allocations: 4.939 MB / 0.5526 GB, free: 2.227 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.972e-05/0.6363, allocations: 119.8 kB / 0.5527 GB, free: 2.086 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.6373, allocations: 0.7659 MB / 0.5535 GB, free: 1.312 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.6375, allocations: 45.7 kB / 0.5535 GB, free: 1.262 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/0.6378, allocations: 451.2 kB / 0.554 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.6381, allocations: 343.1 kB / 0.5543 GB, free: 484 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.6382, allocations: 24 kB / 0.5543 GB, free: 460 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.6384, allocations: 406.7 kB / 0.5547 GB, free: 44 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.6395, allocations: 0.6077 MB / 0.5553 GB, free: 15.44 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.6408, allocations: 0.9498 MB / 0.5562 GB, free: 14.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.6421, allocations: 0.791 MB / 0.557 GB, free: 13.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6422, allocations: 8 kB / 0.557 GB, free: 13.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003519/0.6457, allocations: 1.903 MB / 0.5588 GB, free: 11.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00145/0.6471, allocations: 4.067 MB / 0.5628 GB, free: 7.203 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.6472, allocations: 19.31 kB / 0.5628 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.6487, allocations: 328.5 kB / 0.5632 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.6498, allocations: 271.6 kB / 0.5634 GB, free: 6.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.6513, allocations: 0.9269 MB / 0.5643 GB, free: 5.645 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.6524, allocations: 115.8 kB / 0.5644 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.6526, allocations: 67.97 kB / 0.5645 GB, free: 5.465 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.6526, allocations: 6.656 kB / 0.5645 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003488/0.6561, allocations: 1.8 MB / 0.5663 GB, free: 3.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.6562, allocations: 12 kB / 0.5663 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.6576, allocations: 333.1 kB / 0.5666 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009851/0.6586, allocations: 263.6 kB / 0.5668 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.6601, allocations: 0.9309 MB / 0.5677 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.6613, allocations: 107.8 kB / 0.5678 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.6614, allocations: 67.97 kB / 0.5679 GB, free: 1.922 MB / 446.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.0006947/0.6621, allocations: 416.7 kB / 0.5683 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.6623, allocations: 94.88 kB / 0.5684 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003855/0.6662, allocations: 1.982 MB / 0.5703 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.6662, allocations: 19.98 kB / 0.5704 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.6663, allocations: 0 / 0.5704 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.692e-05/0.6663, allocations: 7.938 kB / 0.5704 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005509/0.6718, allocations: 3.122 MB / 0.5734 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.6718, allocations: 4.219 kB / 0.5734 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008112/0.6726, allocations: 183.8 kB / 0.5736 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.6745, allocations: 396.3 kB / 0.574 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.458e-05/0.6746, allocations: 43.91 kB / 0.574 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.6759, allocations: 0.8919 MB / 0.5749 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.676, allocations: 0 / 0.5749 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004131/0.6801, allocations: 2.478 MB / 0.5773 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.6809, allocations: 347.7 kB / 0.5776 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.681, allocations: 28.88 kB / 0.5777 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.6819, allocations: 83.92 kB / 0.5777 GB, free: 7.586 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.6821, allocations: 64.91 kB / 0.5778 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.6822, allocations: 55.95 kB / 0.5779 GB, free: 7.465 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007205/0.6829, allocations: 0.5419 MB / 0.5784 GB, free: 6.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6829, allocations: 4 kB / 0.5784 GB, free: 6.926 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003324/0.6863, allocations: 1.128 MB / 0.5795 GB, free: 5.797 MB / 462.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 (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.007428/0.6937, allocations: 4.445 MB / 0.5838 GB, free: 1.285 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2185/0.9122, allocations: 2.623 MB / 0.5864 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/0.9123, allocations: 1.375 kB / 0.5864 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.9138, allocations: 0.7454 MB / 0.5871 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/0.9163, allocations: 491.8 kB / 0.5876 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.926, allocations: 10.86 MB / 0.5982 GB, free: 165.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009329/0.927, allocations: 1.137 MB / 0.5993 GB, free: 164.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002509/0.9295, allocations: 0.6755 MB / 0.6 GB, free: 164.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006861/0.9302, allocations: 410.2 kB / 0.6004 GB, free: 164.4 MB / 462.1 MB Notification: Performance of SimCode: time 2.305e-06/0.9302, allocations: 0 / 0.6004 GB, free: 164.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06967/0.9999, allocations: 47.13 MB / 0.6464 GB, free: 127.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/1, allocations: 251.2 kB / 0.6466 GB, free: 127.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.405/4.405, allocations: 0 / 0.6466 GB, free: 127.6 MB / 462.1 MB (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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat