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.0007253/0.0007254, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.0009233/0.0009233, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.19/1.19, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004174/0.0004174, allocations: 12 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07996/0.08039, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.343/0.4234, allocations: 209.7 MB / 0.5261 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2231/0.6466, allocations: 13.5 MB / 0.5393 GB, free: 1.215 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000886/0.6475, allocations: 24.16 kB / 0.5393 GB, free: 1.215 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.6487, allocations: 420.5 kB / 0.5397 GB, free: 1.211 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007957/0.6566, allocations: 3.168 MB / 0.5428 GB, free: 1.176 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006036/0.6627, allocations: 2.461 MB / 0.5452 GB, free: 1.125 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004439/0.6671, allocations: 3.776 MB / 0.5489 GB, free: 1.121 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009609/0.6681, allocations: 0.6574 MB / 0.5495 GB, free: 1.066 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005585/0.6737, allocations: 2.795 MB / 0.5523 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001823/0.6755, allocations: 1.084 MB / 0.5533 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.6757, allocations: 61.75 kB / 0.5534 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/0.6871, allocations: 6.874 MB / 0.5601 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008624/0.688, allocations: 487 kB / 0.5606 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00134/0.6893, allocations: 0.6045 MB / 0.5612 GB, free: 16.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01334/0.7027, allocations: 4.966 MB / 0.566 GB, free: 16.41 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7027, allocations: 2.719 kB / 0.566 GB, free: 16.41 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.7027, allocations: 0 / 0.566 GB, free: 16.41 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.7028, allocations: 0 / 0.566 GB, free: 16.41 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.005559/0.7083, allocations: 1.896 MB / 0.5679 GB, free: 15.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.7084, allocations: 13.53 kB / 0.5679 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002417/0.7086, allocations: 151 kB / 0.568 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004719/0.7091, allocations: 128.6 kB / 0.5681 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.7102, allocations: 0.685 MB / 0.5688 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.7103, allocations: 136.8 kB / 0.5689 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.7105, allocations: 86.97 kB / 0.569 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.7127, allocations: 1.465 MB / 0.5704 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.7127, allocations: 4.344 kB / 0.5705 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.7128, allocations: 42.02 kB / 0.5705 GB, free: 14.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.7129, allocations: 69.17 kB / 0.5706 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00218/0.7151, allocations: 1.47 MB / 0.572 GB, free: 13.79 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.008585/0.7237, allocations: 6.359 MB / 0.5782 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.7255, allocations: 0.9941 MB / 0.5792 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007162/0.7262, allocations: 0.5243 MB / 0.5797 GB, free: 9.363 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001805/0.7281, allocations: 2.064 MB / 0.5817 GB, free: 7.117 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.7281, allocations: 53.03 kB / 0.5818 GB, free: 7.078 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005546/0.7287, allocations: 99.89 kB / 0.5818 GB, free: 7.023 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 3.427e-06/0.7287, allocations: 0 / 0.5818 GB, free: 7.023 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.01625/0.745, allocations: 4.967 MB / 0.5867 GB, free: 5.664 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.7451, allocations: 113.5 kB / 0.5868 GB, free: 5.539 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.7461, allocations: 0.7796 MB / 0.5876 GB, free: 5.277 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/0.7463, allocations: 46.86 kB / 0.5876 GB, free: 5.246 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003262/0.7466, allocations: 452.7 kB / 0.588 GB, free: 4.977 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002841/0.7469, allocations: 340.4 kB / 0.5884 GB, free: 4.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.7471, allocations: 106.3 kB / 0.5885 GB, free: 4.699 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002738/0.7474, allocations: 405 kB / 0.5889 GB, free: 4.355 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.7485, allocations: 0.6207 MB / 0.5895 GB, free: 4.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.7499, allocations: 0.9636 MB / 0.5904 GB, free: 3.734 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.7525, allocations: 1.672 MB / 0.592 GB, free: 3.129 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.7525, allocations: 2.031 kB / 0.592 GB, free: 3.129 MB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003809/0.7563, allocations: 1.965 MB / 0.594 GB, free: 1.867 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003945/0.7567, allocations: 451.3 kB / 0.5944 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.7568, allocations: 12 kB / 0.5944 GB, free: 1.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.7584, allocations: 333.2 kB / 0.5947 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.7595, allocations: 270.4 kB / 0.595 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/0.7612, allocations: 0.9227 MB / 0.5959 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.7625, allocations: 109.5 kB / 0.596 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.7626, allocations: 74.98 kB / 0.5961 GB, free: 15.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.7626, allocations: 4 kB / 0.5961 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003537/0.7662, allocations: 1.843 MB / 0.5979 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.7662, allocations: 13.16 kB / 0.5979 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.7677, allocations: 333.3 kB / 0.5982 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000989/0.7687, allocations: 271.3 kB / 0.5984 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.7704, allocations: 0.9347 MB / 0.5994 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.7716, allocations: 102.1 kB / 0.5995 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.7718, allocations: 79.92 kB / 0.5995 GB, free: 13.06 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.0008279/0.7726, allocations: 424.8 kB / 0.5999 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.7729, allocations: 96.73 kB / 0.6 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/0.7769, allocations: 1.935 MB / 0.6019 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.777, allocations: 15.94 kB / 0.6019 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.777, allocations: 3.984 kB / 0.6019 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.777, allocations: 3.984 kB / 0.6019 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006437/0.7834, allocations: 3.054 MB / 0.6049 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.7835, allocations: 4 kB / 0.6049 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008072/0.7843, allocations: 181.4 kB / 0.6051 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.7862, allocations: 399.5 kB / 0.6055 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.944e-05/0.7863, allocations: 39.09 kB / 0.6055 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.7879, allocations: 0.8921 MB / 0.6064 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.7879, allocations: 0 / 0.6064 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004567/0.7924, allocations: 2.441 MB / 0.6088 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008023/0.7933, allocations: 339.7 kB / 0.6091 GB, free: 5.062 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/0.7934, allocations: 31.92 kB / 0.6091 GB, free: 5.031 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009341/0.7944, allocations: 87.95 kB / 0.6092 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.7946, allocations: 72.89 kB / 0.6093 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.7947, allocations: 55.97 kB / 0.6093 GB, free: 4.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007615/0.7955, allocations: 0.5682 MB / 0.6099 GB, free: 4.262 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7955, allocations: 4 kB / 0.6099 GB, free: 4.258 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003717/0.7992, allocations: 1.167 MB / 0.611 GB, free: 3.09 MB / 462.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 (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.008236/0.8074, allocations: 4.034 MB / 0.615 GB, free: 15.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005053/0.8125, allocations: 2.631 MB / 0.6175 GB, free: 12.52 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.8126, allocations: 6.297 kB / 0.6175 GB, free: 12.52 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.8141, allocations: 0.7439 MB / 0.6183 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/0.8172, allocations: 0.5318 MB / 0.6188 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02145/0.8387, allocations: 12.18 MB / 0.6307 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007147/0.8394, allocations: 1.123 MB / 0.6318 GB, free: 13.47 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002227/0.8417, allocations: 0.6093 MB / 0.6324 GB, free: 12.87 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006586/0.8423, allocations: 411.3 kB / 0.6328 GB, free: 12.46 MB / 494.1 MB Notification: Performance of SimCode: time 8.31e-07/0.8423, allocations: 0 / 0.6328 GB, free: 12.46 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3499/1.192, allocations: 50.41 MB / 0.682 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003952/1.193, allocations: 266.1 kB / 0.6823 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.554/4.747, allocations: 4 kB / 0.6823 GB, free: 9.723 MB / 0.5294 GB (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/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)