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.001183/0.001183, allocations: 100.8 kB / 16.5 MB, free: 6.641 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.001287/0.001287, allocations: 193.3 kB / 17.42 MB, free: 6.066 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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 13.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 46.06 kB / 300.1 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08755, allocations: 49.45 MB / 349.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5718/0.6594, allocations: 204.5 MB / 0.541 GB, free: 1.352 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01319/0.6726, allocations: 10.79 MB / 0.5516 GB, free: 1.258 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.674, allocations: 29 kB / 0.5516 GB, free: 1.258 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.6754, allocations: 413.8 kB / 0.552 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007167/0.6827, allocations: 2.829 MB / 0.5548 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005608/0.6883, allocations: 2.31 MB / 0.557 GB, free: 1.039 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003337/0.6917, allocations: 3.78 MB / 0.5607 GB, free: 1.035 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008249/0.6925, allocations: 0.6657 MB / 0.5614 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005306/0.6978, allocations: 2.501 MB / 0.5638 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.6996, allocations: 1.092 MB / 0.5649 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.6997, allocations: 61.34 kB / 0.5649 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01023/0.71, allocations: 6.444 MB / 0.5712 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006305/0.7106, allocations: 487.9 kB / 0.5717 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009749/0.7116, allocations: 0.5823 MB / 0.5723 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009563/0.7212, allocations: 4.706 MB / 0.5768 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.7212, allocations: 3.984 kB / 0.5769 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7213, allocations: 0 / 0.5769 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.7213, allocations: 1.094 kB / 0.5769 GB, free: 0.5156 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.005129/0.7264, allocations: 2.049 MB / 0.5789 GB, free: 15.22 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.7265, allocations: 13.83 kB / 0.5789 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002161/0.7267, allocations: 151.9 kB / 0.579 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004992/0.7272, allocations: 131.4 kB / 0.5791 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.7283, allocations: 0.6858 MB / 0.5798 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.7284, allocations: 125.2 kB / 0.5799 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/0.7286, allocations: 88.97 kB / 0.58 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.7308, allocations: 1.458 MB / 0.5814 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.7309, allocations: 6.062 kB / 0.5814 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.731, allocations: 44.91 kB / 0.5815 GB, free: 14.15 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.629e-05/0.7311, allocations: 72.98 kB / 0.5816 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/0.7331, allocations: 1.461 MB / 0.583 GB, free: 13.89 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.007986/0.7411, allocations: 6.316 MB / 0.5891 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.7427, allocations: 0.97 MB / 0.5901 GB, free: 9.547 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007008/0.7435, allocations: 0.5357 MB / 0.5906 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001333/0.7448, allocations: 1.804 MB / 0.5924 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.7448, allocations: 47.25 kB / 0.5924 GB, free: 7.387 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003648/0.7452, allocations: 98.22 kB / 0.5925 GB, free: 7.332 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 3.557e-06/0.7452, allocations: 6.312 kB / 0.5925 GB, free: 7.328 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01546/0.7607, allocations: 4.777 MB / 0.5972 GB, free: 5.816 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.7608, allocations: 116.8 kB / 0.5973 GB, free: 5.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009404/0.7617, allocations: 0.7766 MB / 0.5981 GB, free: 5.078 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.7619, allocations: 41.58 kB / 0.5981 GB, free: 5.043 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.7622, allocations: 455.9 kB / 0.5985 GB, free: 4.719 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.7624, allocations: 342.4 kB / 0.5989 GB, free: 4.434 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004195/0.7629, allocations: 256.2 kB / 0.5991 GB, free: 4.266 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.763, allocations: 400.4 kB / 0.5995 GB, free: 3.902 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.7643, allocations: 0.619 MB / 0.6001 GB, free: 3.488 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.7657, allocations: 0.9529 MB / 0.601 GB, free: 2.621 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002672/0.7684, allocations: 1.661 MB / 0.6026 GB, free: 1.352 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.7684, allocations: 4 kB / 0.6026 GB, free: 1.348 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004188/0.7726, allocations: 1.933 MB / 0.6045 GB, free: 15.51 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.094e-05/0.7727, allocations: 67.41 kB / 0.6046 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.7728, allocations: 15.92 kB / 0.6046 GB, free: 15.42 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.7743, allocations: 309.2 kB / 0.6049 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7754, allocations: 270.6 kB / 0.6052 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.777, allocations: 0.9033 MB / 0.6061 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.7781, allocations: 103.8 kB / 0.6062 GB, free: 13.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.7783, allocations: 71.97 kB / 0.6062 GB, free: 13.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001543/0.7798, allocations: 0.8499 MB / 0.607 GB, free: 12.92 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001438/0.7813, allocations: 0.9501 MB / 0.608 GB, free: 11.83 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002628/0.7839, allocations: 1.631 MB / 0.6096 GB, free: 10.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.138e-06/0.7839, allocations: 8.078 kB / 0.6096 GB, free: 10.08 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003814/0.7877, allocations: 1.914 MB / 0.6114 GB, free: 8.203 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.789e-05/0.7878, allocations: 63.41 kB / 0.6115 GB, free: 8.129 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.7878, allocations: 12.53 kB / 0.6115 GB, free: 8.117 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.7893, allocations: 313.2 kB / 0.6118 GB, free: 7.809 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.7903, allocations: 265.5 kB / 0.6121 GB, free: 7.566 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.7919, allocations: 0.9164 MB / 0.613 GB, free: 6.637 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.7931, allocations: 103.8 kB / 0.6131 GB, free: 6.535 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.7932, allocations: 71.97 kB / 0.6131 GB, free: 6.465 MB / 478.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.0003759/0.7936, allocations: 261.4 kB / 0.6134 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.7939, allocations: 99.97 kB / 0.6135 GB, free: 6.125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/0.7978, allocations: 1.959 MB / 0.6154 GB, free: 4.141 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.7978, allocations: 13.03 kB / 0.6154 GB, free: 4.129 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.7978, allocations: 0 / 0.6154 GB, free: 4.129 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.7979, allocations: 7.984 kB / 0.6154 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005346/0.8032, allocations: 3.118 MB / 0.6185 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.8032, allocations: 0 / 0.6185 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008351/0.8041, allocations: 183.5 kB / 0.6186 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/0.8058, allocations: 379.5 kB / 0.619 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.8059, allocations: 37.08 kB / 0.619 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.8073, allocations: 0.8833 MB / 0.6199 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.8073, allocations: 7.031 kB / 0.6199 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.8117, allocations: 2.376 MB / 0.6222 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000654/0.8124, allocations: 320.9 kB / 0.6225 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/0.8127, allocations: 31.98 kB / 0.6226 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.8138, allocations: 79.88 kB / 0.6226 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.814, allocations: 71.8 kB / 0.6227 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.8141, allocations: 51.97 kB / 0.6227 GB, free: 12.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000827/0.815, allocations: 0.5732 MB / 0.6233 GB, free: 11.93 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.815, allocations: 0 / 0.6233 GB, free: 11.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003825/0.8188, allocations: 1.124 MB / 0.6244 GB, free: 10.8 MB / 494.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 (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.009894/0.8287, allocations: 3.878 MB / 0.6282 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005545/0.8343, allocations: 2.619 MB / 0.6308 GB, free: 4.379 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.8343, allocations: 448 / 0.6308 GB, free: 4.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.8358, allocations: 0.7407 MB / 0.6315 GB, free: 3.668 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/0.8389, allocations: 0.5393 MB / 0.632 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02412/0.863, allocations: 11.99 MB / 0.6437 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009566/0.864, allocations: 1.123 MB / 0.6448 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002569/0.8666, allocations: 0.7061 MB / 0.6455 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007976/0.8674, allocations: 407.3 kB / 0.6459 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of SimCode: time 1.452e-06/0.8675, allocations: 4 kB / 0.6459 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0909/0.9584, allocations: 49.13 MB / 0.6939 GB, free: 3.703 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002455/0.9587, allocations: 269.9 kB / 0.6941 GB, free: 3.348 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.463/4.422, allocations: 1.203 kB / 0.6941 GB, free: 3.348 MB / 0.545 GB (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/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)