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.0009732/0.0009732, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 60.5 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09355, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5789/0.6724, allocations: 208.7 MB / 0.553 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.6831, allocations: 10.4 MB / 0.5632 GB, free: 1.008 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007552/0.6839, allocations: 24 kB / 0.5632 GB, free: 1.008 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.6851, allocations: 472.4 kB / 0.5637 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0073/0.6924, allocations: 3.211 MB / 0.5668 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005896/0.6983, allocations: 2.705 MB / 0.5694 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002687/0.701, allocations: 2.626 MB / 0.572 GB, free: 0.793 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.7022, allocations: 0.7854 MB / 0.5728 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005283/0.7075, allocations: 2.827 MB / 0.5755 GB, free: 16.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.7088, allocations: 1.068 MB / 0.5766 GB, free: 16.68 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.709, allocations: 118.7 kB / 0.5767 GB, free: 16.68 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009372/0.7184, allocations: 6.164 MB / 0.5827 GB, free: 16.62 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006239/0.7191, allocations: 0.541 MB / 0.5832 GB, free: 16.61 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009179/0.72, allocations: 0.6417 MB / 0.5839 GB, free: 16.59 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008491/0.7285, allocations: 4.655 MB / 0.5884 GB, free: 15.12 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.7285, allocations: 8.422 kB / 0.5884 GB, free: 15.12 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.7285, allocations: 0 / 0.5884 GB, free: 15.12 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.7286, allocations: 0 / 0.5884 GB, free: 15.12 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.004466/0.733, allocations: 2.07 MB / 0.5904 GB, free: 13.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.7331, allocations: 9.719 kB / 0.5904 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002131/0.7333, allocations: 149.3 kB / 0.5906 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004901/0.7338, allocations: 132.6 kB / 0.5907 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.7349, allocations: 0.6806 MB / 0.5914 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.735, allocations: 133.8 kB / 0.5915 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.7352, allocations: 87.62 kB / 0.5916 GB, free: 13.22 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.7374, allocations: 1.456 MB / 0.593 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.7374, allocations: 0 / 0.593 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.7375, allocations: 39.95 kB / 0.593 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.8e-05/0.7376, allocations: 72.64 kB / 0.5931 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.7399, allocations: 1.467 MB / 0.5946 GB, free: 12.48 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.008433/0.7483, allocations: 6.353 MB / 0.6008 GB, free: 8.289 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002042/0.7504, allocations: 0.97 MB / 0.6017 GB, free: 7.867 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008139/0.7512, allocations: 0.5169 MB / 0.6022 GB, free: 7.539 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001638/0.7529, allocations: 1.8 MB / 0.604 GB, free: 5.395 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.7529, allocations: 44.25 kB / 0.604 GB, free: 5.352 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006154/0.7536, allocations: 99.42 kB / 0.6041 GB, free: 5.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.936e-06/0.7536, allocations: 3.188 kB / 0.6041 GB, free: 5.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01661/0.7702, allocations: 4.792 MB / 0.6088 GB, free: 1.578 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.7703, allocations: 111.8 kB / 0.6089 GB, free: 1.445 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.7713, allocations: 0.7766 MB / 0.6096 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.7715, allocations: 49.02 kB / 0.6097 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003432/0.7719, allocations: 453.7 kB / 0.6101 GB, free: 416 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003366/0.7722, allocations: 339.3 kB / 0.6105 GB, free: 80 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004582/0.7727, allocations: 246.7 kB / 0.6107 GB, free: 15.83 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.7729, allocations: 406.7 kB / 0.6111 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.7741, allocations: 0.6158 MB / 0.6117 GB, free: 14.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.7757, allocations: 0.9571 MB / 0.6126 GB, free: 13.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002798/0.7785, allocations: 1.656 MB / 0.6142 GB, free: 11.94 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.7785, allocations: 0 / 0.6142 GB, free: 11.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003968/0.7825, allocations: 1.94 MB / 0.6161 GB, free: 10.04 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.916e-05/0.7825, allocations: 67.41 kB / 0.6162 GB, free: 9.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.7826, allocations: 8 kB / 0.6162 GB, free: 9.957 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.7841, allocations: 309.2 kB / 0.6165 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.7852, allocations: 275.8 kB / 0.6168 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.7868, allocations: 0.9057 MB / 0.6176 GB, free: 8.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.788, allocations: 74.89 kB / 0.6177 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.7881, allocations: 72.05 kB / 0.6178 GB, free: 8.336 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001534/0.7897, allocations: 0.8392 MB / 0.6186 GB, free: 7.492 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001443/0.7911, allocations: 0.9498 MB / 0.6195 GB, free: 6.398 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002763/0.7939, allocations: 1.631 MB / 0.6211 GB, free: 4.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.463e-06/0.7939, allocations: 7.938 kB / 0.6211 GB, free: 4.652 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004/0.7979, allocations: 1.899 MB / 0.623 GB, free: 2.785 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/0.798, allocations: 63.41 kB / 0.623 GB, free: 2.711 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.798, allocations: 12.03 kB / 0.6231 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/0.7994, allocations: 308.5 kB / 0.6233 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.8005, allocations: 270.7 kB / 0.6236 GB, free: 2.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.8021, allocations: 0.9125 MB / 0.6245 GB, free: 1.219 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.8034, allocations: 76.02 kB / 0.6246 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/0.8036, allocations: 63.97 kB / 0.6246 GB, free: 1.082 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.000652/0.8042, allocations: 275.2 kB / 0.6249 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004076/0.8046, allocations: 98.81 kB / 0.625 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004171/0.8088, allocations: 1.959 MB / 0.6269 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/0.8089, allocations: 15.98 kB / 0.6269 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.8089, allocations: 0 / 0.6269 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.8089, allocations: 7.969 kB / 0.6269 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006438/0.8153, allocations: 3.108 MB / 0.63 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.8154, allocations: 4 kB / 0.63 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009197/0.8163, allocations: 177.3 kB / 0.6301 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001762/0.8181, allocations: 386.2 kB / 0.6305 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.8182, allocations: 35.98 kB / 0.6305 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.8197, allocations: 0.8786 MB / 0.6314 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8197, allocations: 0 / 0.6314 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004696/0.8244, allocations: 2.376 MB / 0.6337 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009329/0.8253, allocations: 323.7 kB / 0.634 GB, free: 7.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003575/0.8257, allocations: 24 kB / 0.634 GB, free: 7.305 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8269, allocations: 67.94 kB / 0.6341 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.8271, allocations: 71.94 kB / 0.6342 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/0.8273, allocations: 59.89 kB / 0.6342 GB, free: 7.113 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001027/0.8283, allocations: 0.5654 MB / 0.6348 GB, free: 6.555 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8283, allocations: 7.938 kB / 0.6348 GB, free: 6.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003975/0.8323, allocations: 1.136 MB / 0.6359 GB, free: 5.41 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.008804/0.8411, allocations: 3.897 MB / 0.6397 GB, free: 1.551 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006702/0.8479, allocations: 2.936 MB / 0.6426 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/0.8479, allocations: 4.344 kB / 0.6426 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.8495, allocations: 0.7386 MB / 0.6433 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.8525, allocations: 0.5646 MB / 0.6439 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02171/0.8743, allocations: 11.68 MB / 0.6553 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.8751, allocations: 1.115 MB / 0.6563 GB, free: 72 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002338/0.8775, allocations: 0.7103 MB / 0.657 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006711/0.8782, allocations: 403.3 kB / 0.6574 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of SimCode: time 1.313e-06/0.8782, allocations: 0 / 0.6574 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09687/0.9751, allocations: 50.56 MB / 0.7068 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/13.35, allocations: 12.06 kB / 0.7068 GB, free: 12.67 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)