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.001291/0.001291, allocations: 106 kB / 16.62 MB, free: 6.805 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.001365/0.001365, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.251/1.251, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 43.78 kB / 300.2 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1017, allocations: 49.44 MB / 349.7 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.7055/0.8073, allocations: 203.2 MB / 0.5399 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.8223, allocations: 10.44 MB / 0.5501 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.8236, allocations: 31.45 kB / 0.5501 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.825, allocations: 417.4 kB / 0.5505 GB, free: 1.105 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00896/0.834, allocations: 2.951 MB / 0.5534 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007595/0.8416, allocations: 2.465 MB / 0.5558 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003504/0.8452, allocations: 2.642 MB / 0.5584 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/0.8464, allocations: 0.7595 MB / 0.5591 GB, free: 16.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005688/0.8521, allocations: 2.717 MB / 0.5618 GB, free: 16.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001612/0.8537, allocations: 1.135 MB / 0.5629 GB, free: 16.79 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.8539, allocations: 120.4 kB / 0.563 GB, free: 16.79 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01059/0.8645, allocations: 6.284 MB / 0.5691 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005872/0.8651, allocations: 0.5362 MB / 0.5697 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009097/0.866, allocations: 0.6395 MB / 0.5703 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.8769, allocations: 4.759 MB / 0.5749 GB, free: 16.49 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8769, allocations: 0 / 0.5749 GB, free: 16.49 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.8769, allocations: 3.406 kB / 0.5749 GB, free: 16.49 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.8769, allocations: 0 / 0.5749 GB, free: 16.49 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.004855/0.8818, allocations: 2.049 MB / 0.5769 GB, free: 15.42 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.8818, allocations: 15.59 kB / 0.5769 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/0.882, allocations: 154.7 kB / 0.5771 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004496/0.8825, allocations: 130.1 kB / 0.5772 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000958/0.8835, allocations: 0.6775 MB / 0.5779 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.8837, allocations: 133.9 kB / 0.578 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.8839, allocations: 87.48 kB / 0.5781 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.8865, allocations: 1.455 MB / 0.5795 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.8865, allocations: 10.62 kB / 0.5795 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.8866, allocations: 37.69 kB / 0.5796 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.72e-05/0.8867, allocations: 73.58 kB / 0.5796 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.8889, allocations: 1.462 MB / 0.5811 GB, free: 14.75 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.008527/0.8975, allocations: 6.323 MB / 0.5872 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.8993, allocations: 0.9775 MB / 0.5882 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007047/0.9, allocations: 0.5199 MB / 0.5887 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001498/0.9015, allocations: 1.797 MB / 0.5904 GB, free: 8.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.9016, allocations: 52.66 kB / 0.5905 GB, free: 8.637 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004088/0.902, allocations: 102.7 kB / 0.5906 GB, free: 8.582 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 3.817e-06/0.902, allocations: 0 / 0.5906 GB, free: 8.582 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01579/0.9178, allocations: 4.794 MB / 0.5953 GB, free: 7.285 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.531e-05/0.9179, allocations: 119.5 kB / 0.5954 GB, free: 7.156 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009714/0.9189, allocations: 0.7693 MB / 0.5961 GB, free: 6.902 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.919, allocations: 49.5 kB / 0.5962 GB, free: 6.871 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/0.9194, allocations: 456.3 kB / 0.5966 GB, free: 6.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.9197, allocations: 337.2 kB / 0.5969 GB, free: 6.355 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005083/0.9203, allocations: 249.8 kB / 0.5972 GB, free: 6.305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.9205, allocations: 405.6 kB / 0.5976 GB, free: 5.961 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.9216, allocations: 0.6127 MB / 0.5982 GB, free: 5.621 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.9231, allocations: 0.9581 MB / 0.5991 GB, free: 4.762 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.9258, allocations: 1.656 MB / 0.6007 GB, free: 3.465 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.9258, allocations: 4 kB / 0.6007 GB, free: 3.461 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004016/0.9299, allocations: 1.936 MB / 0.6026 GB, free: 1.566 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.475e-05/0.9299, allocations: 63.39 kB / 0.6027 GB, free: 1.492 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.93, allocations: 15.94 kB / 0.6027 GB, free: 1.477 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/0.9315, allocations: 312.8 kB / 0.603 GB, free: 1.168 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.9327, allocations: 274.3 kB / 0.6032 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.9343, allocations: 0.9016 MB / 0.6041 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.9354, allocations: 103.9 kB / 0.6042 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.9356, allocations: 67.98 kB / 0.6043 GB, free: 15.83 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001576/0.9372, allocations: 0.8527 MB / 0.6051 GB, free: 14.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00144/0.9386, allocations: 0.9411 MB / 0.606 GB, free: 13.89 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002844/0.9415, allocations: 1.633 MB / 0.6076 GB, free: 12.15 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.93e-06/0.9415, allocations: 4 kB / 0.6076 GB, free: 12.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003928/0.9454, allocations: 1.908 MB / 0.6095 GB, free: 10.27 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.9455, allocations: 70.69 kB / 0.6096 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.9455, allocations: 8.594 kB / 0.6096 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.947, allocations: 316.6 kB / 0.6099 GB, free: 9.879 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.9481, allocations: 269.5 kB / 0.6101 GB, free: 9.633 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.9498, allocations: 0.9077 MB / 0.611 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.9509, allocations: 103.9 kB / 0.6111 GB, free: 8.605 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.9511, allocations: 75.95 kB / 0.6112 GB, free: 8.531 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.0004371/0.9515, allocations: 257.8 kB / 0.6114 GB, free: 8.289 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.9518, allocations: 100.2 kB / 0.6115 GB, free: 8.191 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.9559, allocations: 1.955 MB / 0.6134 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.9559, allocations: 15.94 kB / 0.6135 GB, free: 6.195 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/0.9559, allocations: 0 / 0.6135 GB, free: 6.195 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-05/0.956, allocations: 5.078 kB / 0.6135 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005786/0.9618, allocations: 3.103 MB / 0.6165 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.9618, allocations: 4 kB / 0.6165 GB, free: 3.027 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009063/0.9627, allocations: 185 kB / 0.6167 GB, free: 2.859 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.9645, allocations: 382.1 kB / 0.617 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.9646, allocations: 37.19 kB / 0.6171 GB, free: 2.449 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.9662, allocations: 0.8839 MB / 0.6179 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.9662, allocations: 0 / 0.6179 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004499/0.9707, allocations: 2.378 MB / 0.6203 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008281/0.9716, allocations: 326.6 kB / 0.6206 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.9718, allocations: 33.41 kB / 0.6206 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009823/0.9728, allocations: 71.94 kB / 0.6207 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.973, allocations: 76.89 kB / 0.6208 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.9731, allocations: 57.53 kB / 0.6208 GB, free: 14.56 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008265/0.974, allocations: 0.5654 MB / 0.6214 GB, free: 14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.974, allocations: 4 kB / 0.6214 GB, free: 14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003857/0.9778, allocations: 1.128 MB / 0.6225 GB, free: 12.87 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.008229/0.9861, allocations: 3.87 MB / 0.6262 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00631/0.9924, allocations: 2.935 MB / 0.6291 GB, free: 6.145 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/0.9925, allocations: 4.438 kB / 0.6291 GB, free: 6.141 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001685/0.9942, allocations: 0.7409 MB / 0.6298 GB, free: 5.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003763/0.9979, allocations: 0.5696 MB / 0.6304 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.019, allocations: 12 MB / 0.6421 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007907/1.02, allocations: 1.119 MB / 0.6432 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002132/1.022, allocations: 0.707 MB / 0.6439 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000613/1.022, allocations: 399.3 kB / 0.6443 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/1.022, allocations: 0 / 0.6443 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08587/1.108, allocations: 50.17 MB / 0.6933 GB, free: 4.43 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/1.108, allocations: 266.2 kB / 0.6935 GB, free: 4.074 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/4.725, allocations: 4 kB / 0.6935 GB, free: 4.07 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)