Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007336/0.0007335, allocations: 96.69 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008605/0.0008606, allocations: 197.4 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002259, allocations: 8 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1228, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5105/0.6334, allocations: 187.6 MB / 0.5331 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3559/0.9893, allocations: 9.755 MB / 0.5427 GB, free: 3.797 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.9905, allocations: 25.78 kB / 0.5427 GB, free: 3.797 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.9918, allocations: 338.1 kB / 0.543 GB, free: 3.793 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.008355/1, allocations: 2.523 MB / 0.5455 GB, free: 3.711 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007519/1.008, allocations: 1.984 MB / 0.5474 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005068/1.013, allocations: 3.141 MB / 0.5505 GB, free: 3.645 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/1.014, allocations: 0.6319 MB / 0.5511 GB, free: 3.578 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007348/1.022, allocations: 2.363 MB / 0.5534 GB, free: 3.527 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/1.025, allocations: 1.058 MB / 0.5544 GB, free: 3.523 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002941/1.025, allocations: 60.78 kB / 0.5545 GB, free: 3.523 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01175/1.037, allocations: 5.202 MB / 0.5596 GB, free: 3.465 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001215/1.038, allocations: 498 kB / 0.56 GB, free: 3.465 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009616/1.039, allocations: 239.5 kB / 0.5603 GB, free: 19.43 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007338/1.046, allocations: 3.071 MB / 0.5633 GB, free: 19.2 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.394e-05/1.046, allocations: 4 kB / 0.5633 GB, free: 19.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 5.67e-06/1.046, allocations: 0 / 0.5633 GB, free: 19.2 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.424e-05/1.046, allocations: 0 / 0.5633 GB, free: 19.2 MB / 462.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.004898/1.051, allocations: 1.849 MB / 0.5651 GB, free: 18.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/1.051, allocations: 11.22 kB / 0.5651 GB, free: 18.12 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002649/1.052, allocations: 149.5 kB / 0.5652 GB, free: 18.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004854/1.052, allocations: 127.4 kB / 0.5653 GB, free: 18.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/1.053, allocations: 0.6671 MB / 0.566 GB, free: 17.76 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/1.053, allocations: 133.5 kB / 0.5661 GB, free: 17.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/1.054, allocations: 90.91 kB / 0.5662 GB, free: 17.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002371/1.056, allocations: 1.456 MB / 0.5676 GB, free: 17.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/1.056, allocations: 0 / 0.5676 GB, free: 17.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/1.056, allocations: 38.86 kB / 0.5677 GB, free: 17.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.056, allocations: 73.67 kB / 0.5677 GB, free: 17.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002825/1.059, allocations: 1.458 MB / 0.5692 GB, free: 17.44 MB / 462.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.009129/1.068, allocations: 6.341 MB / 0.5754 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/1.07, allocations: 0.9813 MB / 0.5763 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007134/1.071, allocations: 0.5268 MB / 0.5768 GB, free: 12.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001528/1.072, allocations: 1.803 MB / 0.5786 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/1.072, allocations: 49.83 kB / 0.5786 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006619/1.073, allocations: 98.67 kB / 0.5787 GB, free: 10.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.895e-06/1.073, allocations: 2.625 kB / 0.5787 GB, free: 10.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01558/1.089, allocations: 4.935 MB / 0.5836 GB, free: 9.496 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/1.089, allocations: 113.6 kB / 0.5837 GB, free: 9.371 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/1.09, allocations: 0.7648 MB / 0.5844 GB, free: 9.121 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/1.09, allocations: 49.28 kB / 0.5845 GB, free: 9.086 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/1.09, allocations: 451.3 kB / 0.5849 GB, free: 8.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/1.091, allocations: 341 kB / 0.5852 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.668e-05/1.091, allocations: 26.84 kB / 0.5852 GB, free: 8.574 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002554/1.091, allocations: 411.2 kB / 0.5856 GB, free: 8.227 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/1.092, allocations: 0.6048 MB / 0.5862 GB, free: 8.125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/1.093, allocations: 0.9505 MB / 0.5872 GB, free: 7.613 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/1.095, allocations: 0.7935 MB / 0.5879 GB, free: 7.441 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/1.095, allocations: 5.5 kB / 0.5879 GB, free: 7.441 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00372/1.099, allocations: 1.913 MB / 0.5898 GB, free: 7.039 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003133/1.099, allocations: 457.2 kB / 0.5902 GB, free: 6.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/1.099, allocations: 9.25 kB / 0.5902 GB, free: 6.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/1.1, allocations: 327.9 kB / 0.5906 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/1.102, allocations: 274.8 kB / 0.5908 GB, free: 6.363 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/1.103, allocations: 0.9244 MB / 0.5917 GB, free: 5.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/1.104, allocations: 113.6 kB / 0.5918 GB, free: 5.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001595/1.105, allocations: 68.61 kB / 0.5919 GB, free: 5.727 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/1.105, allocations: 6.344 kB / 0.5919 GB, free: 5.727 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003521/1.108, allocations: 1.806 MB / 0.5937 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/1.108, allocations: 10.06 kB / 0.5937 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/1.11, allocations: 333 kB / 0.594 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/1.111, allocations: 264.6 kB / 0.5942 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/1.112, allocations: 0.9229 MB / 0.5951 GB, free: 4.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/1.113, allocations: 111.3 kB / 0.5953 GB, free: 4.637 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/1.114, allocations: 78.34 kB / 0.5953 GB, free: 4.625 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 (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.0009299/1.115, allocations: 418.3 kB / 0.5957 GB, free: 4.406 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002743/1.115, allocations: 94.06 kB / 0.5958 GB, free: 4.359 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003961/1.119, allocations: 1.979 MB / 0.5977 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.119, allocations: 11.98 kB / 0.5978 GB, free: 3.578 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.119, allocations: 0 / 0.5978 GB, free: 3.578 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/1.119, allocations: 11.94 kB / 0.5978 GB, free: 3.566 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005522/1.124, allocations: 3.114 MB / 0.6008 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.517e-06/1.125, allocations: 4 kB / 0.6008 GB, free: 1.297 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008635/1.125, allocations: 179.1 kB / 0.601 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/1.127, allocations: 408.4 kB / 0.6014 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/1.127, allocations: 33.73 kB / 0.6014 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/1.129, allocations: 0.8946 MB / 0.6023 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.129, allocations: 0 / 0.6023 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004556/1.133, allocations: 2.389 MB / 0.6046 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008698/1.134, allocations: 337.5 kB / 0.6049 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002915/1.135, allocations: 29.88 kB / 0.605 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/1.136, allocations: 84.58 kB / 0.605 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/1.136, allocations: 76.5 kB / 0.6051 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/1.136, allocations: 57.64 kB / 0.6052 GB, free: 13.79 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009131/1.137, allocations: 0.5412 MB / 0.6057 GB, free: 13.39 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.543e-06/1.137, allocations: 4 kB / 0.6057 GB, free: 13.39 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004622/1.142, allocations: 1.135 MB / 0.6068 GB, free: 12.35 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 (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.008861/1.151, allocations: 3.895 MB / 0.6106 GB, free: 9.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005845/1.156, allocations: 2.618 MB / 0.6132 GB, free: 7.359 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.157, allocations: 2.062 kB / 0.6132 GB, free: 7.359 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/1.158, allocations: 0.7418 MB / 0.6139 GB, free: 6.855 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/1.161, allocations: 0.5147 MB / 0.6144 GB, free: 6.449 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01929/1.181, allocations: 7.897 MB / 0.6221 GB, free: 15.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009886/1.182, allocations: 1.118 MB / 0.6232 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002671/1.185, allocations: 0.7097 MB / 0.6239 GB, free: 13.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007386/1.185, allocations: 407.3 kB / 0.6243 GB, free: 13.79 MB / 494.1 MB Notification: Performance of SimCode: time 1.112e-06/1.185, allocations: 1.859 kB / 0.6243 GB, free: 13.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08961/1.275, allocations: 47.72 MB / 0.6709 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003465/1.275, allocations: 252.7 kB / 0.6711 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.354/4.629, allocations: 0 / 0.6711 GB, free: 14.12 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat