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.001596/0.001596, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.4 MB, free: 9.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001151, allocations: 65.92 kB / 306.6 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09262, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6354/0.7281, allocations: 206.9 MB / 0.5507 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.7425, allocations: 10.51 MB / 0.561 GB, free: 1.012 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.7439, allocations: 26.78 kB / 0.561 GB, free: 1.012 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.7454, allocations: 421.7 kB / 0.5614 GB, free: 1.004 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00952/0.7549, allocations: 2.957 MB / 0.5643 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007274/0.7622, allocations: 2.48 MB / 0.5668 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003518/0.7658, allocations: 2.631 MB / 0.5693 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009982/0.7668, allocations: 0.7661 MB / 0.5701 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006516/0.7733, allocations: 2.765 MB / 0.5728 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.7753, allocations: 1.14 MB / 0.5739 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.7756, allocations: 119.4 kB / 0.574 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01282/0.7884, allocations: 6.363 MB / 0.5802 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007692/0.7892, allocations: 0.5386 MB / 0.5807 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.7904, allocations: 0.6386 MB / 0.5814 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.802, allocations: 4.843 MB / 0.5861 GB, free: 0 / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.802, allocations: 1.031 kB / 0.5861 GB, free: 0 / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.802, allocations: 1.562 kB / 0.5861 GB, free: 0 / 446.1 MB Notification: Performance of Transformations before backend: time 7.77e-05/0.8021, allocations: 64 / 0.5861 GB, free: 0 / 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.006856/0.809, allocations: 2.079 MB / 0.5881 GB, free: 14.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.809, allocations: 12.28 kB / 0.5881 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002247/0.8093, allocations: 149 kB / 0.5883 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005416/0.8098, allocations: 129.3 kB / 0.5884 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.8111, allocations: 0.6778 MB / 0.5891 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.8113, allocations: 134.5 kB / 0.5892 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.8115, allocations: 91.7 kB / 0.5893 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.8141, allocations: 1.451 MB / 0.5907 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.428e-05/0.8141, allocations: 0.8125 kB / 0.5907 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.8143, allocations: 40.03 kB / 0.5907 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-05/0.8144, allocations: 72.27 kB / 0.5908 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.8168, allocations: 1.462 MB / 0.5922 GB, free: 13.36 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.009196/0.826, allocations: 6.336 MB / 0.5984 GB, free: 9.176 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001966/0.828, allocations: 0.9665 MB / 0.5994 GB, free: 9.008 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007808/0.8288, allocations: 0.526 MB / 0.5999 GB, free: 8.867 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001547/0.8304, allocations: 1.798 MB / 0.6016 GB, free: 6.723 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.8304, allocations: 54.73 kB / 0.6017 GB, free: 6.672 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005739/0.831, allocations: 99.36 kB / 0.6018 GB, free: 6.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 3.727e-06/0.831, allocations: 0 / 0.6018 GB, free: 6.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01716/0.8482, allocations: 4.799 MB / 0.6065 GB, free: 2.898 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.378e-05/0.8483, allocations: 111.8 kB / 0.6066 GB, free: 2.766 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.8494, allocations: 0.7719 MB / 0.6073 GB, free: 2.172 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001439/0.8495, allocations: 47.95 kB / 0.6074 GB, free: 2.133 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/0.8499, allocations: 448.8 kB / 0.6078 GB, free: 1.812 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/0.8502, allocations: 346.5 kB / 0.6081 GB, free: 1.523 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/0.8506, allocations: 246.1 kB / 0.6084 GB, free: 1.363 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.8508, allocations: 409.8 kB / 0.6088 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.8521, allocations: 0.6137 MB / 0.6094 GB, free: 432 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.8536, allocations: 0.9595 MB / 0.6103 GB, free: 15.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/0.8564, allocations: 1.657 MB / 0.6119 GB, free: 13.55 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.8565, allocations: 0 / 0.6119 GB, free: 13.55 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004033/0.8605, allocations: 1.932 MB / 0.6138 GB, free: 11.66 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/0.8606, allocations: 71.41 kB / 0.6139 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.8606, allocations: 8 kB / 0.6139 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/0.8622, allocations: 311.4 kB / 0.6142 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.8633, allocations: 270.4 kB / 0.6144 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.8651, allocations: 0.9154 MB / 0.6153 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.8664, allocations: 103.8 kB / 0.6154 GB, free: 9.984 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/0.8666, allocations: 67.98 kB / 0.6155 GB, free: 9.918 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001732/0.8683, allocations: 0.8471 MB / 0.6163 GB, free: 9.066 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001612/0.87, allocations: 0.9477 MB / 0.6172 GB, free: 7.977 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00282/0.8728, allocations: 1.637 MB / 0.6188 GB, free: 6.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.067e-05/0.8728, allocations: 4 kB / 0.6188 GB, free: 6.227 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004175/0.877, allocations: 1.896 MB / 0.6207 GB, free: 4.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.438e-05/0.8771, allocations: 67.39 kB / 0.6208 GB, free: 4.289 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.8771, allocations: 8 kB / 0.6208 GB, free: 4.281 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/0.8786, allocations: 312.4 kB / 0.6211 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.8797, allocations: 272.8 kB / 0.6213 GB, free: 3.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/0.8813, allocations: 0.9095 MB / 0.6222 GB, free: 2.801 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.8827, allocations: 99.89 kB / 0.6223 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.8829, allocations: 67.97 kB / 0.6224 GB, free: 2.637 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.0004756/0.8834, allocations: 266.4 kB / 0.6226 GB, free: 2.387 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.8838, allocations: 106.8 kB / 0.6227 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004116/0.8879, allocations: 1.962 MB / 0.6246 GB, free: 296 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.8879, allocations: 12 kB / 0.6247 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.8879, allocations: 0 / 0.6247 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.8879, allocations: 3.984 kB / 0.6247 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005517/0.8935, allocations: 3.102 MB / 0.6277 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.8935, allocations: 4 kB / 0.6277 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000843/0.8943, allocations: 187.8 kB / 0.6279 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/0.8962, allocations: 378.3 kB / 0.6282 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.8963, allocations: 39.97 kB / 0.6283 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.8977, allocations: 0.8808 MB / 0.6291 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.8977, allocations: 4 kB / 0.6291 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004154/0.9019, allocations: 2.376 MB / 0.6315 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006089/0.9025, allocations: 322.6 kB / 0.6318 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.9029, allocations: 39.92 kB / 0.6318 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.9039, allocations: 75.94 kB / 0.6319 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.9041, allocations: 72.83 kB / 0.6319 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.9042, allocations: 52.06 kB / 0.632 GB, free: 8.645 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007925/0.905, allocations: 0.5693 MB / 0.6325 GB, free: 8.082 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.905, allocations: 0 / 0.6325 GB, free: 8.082 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004224/0.9093, allocations: 1.148 MB / 0.6337 GB, free: 6.934 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.009324/0.9186, allocations: 3.901 MB / 0.6375 GB, free: 3.074 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006757/0.9254, allocations: 2.936 MB / 0.6403 GB, free: 176 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.9254, allocations: 4.562 kB / 0.6403 GB, free: 172 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.927, allocations: 0.7402 MB / 0.6411 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/0.9301, allocations: 0.5582 MB / 0.6416 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/0.9547, allocations: 12.03 MB / 0.6534 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008975/0.9557, allocations: 1.119 MB / 0.6545 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002426/0.9581, allocations: 0.7071 MB / 0.6551 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008447/0.959, allocations: 399.3 kB / 0.6555 GB, free: 144 kB / 0.4981 GB Notification: Performance of SimCode: time 1.132e-06/0.959, allocations: 7.938 kB / 0.6555 GB, free: 136 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1312/1.09, allocations: 50.34 MB / 0.7047 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000424/1.091, allocations: 266.4 kB / 0.705 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.655/4.745, allocations: 3.094 kB / 0.705 GB, free: 13.77 MB / 0.5606 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/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)