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.001293/0.001293, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.88 kB / 306.4 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 50.52 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6477/0.7495, allocations: 208.3 MB / 0.5519 GB, free: 1.184 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.7621, allocations: 10.84 MB / 0.5625 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.7632, allocations: 30.28 kB / 0.5626 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.7642, allocations: 413.4 kB / 0.563 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006516/0.7708, allocations: 2.841 MB / 0.5657 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005062/0.7758, allocations: 2.305 MB / 0.568 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.779, allocations: 3.791 MB / 0.5717 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.7801, allocations: 0.6741 MB / 0.5723 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005909/0.786, allocations: 2.537 MB / 0.5748 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.788, allocations: 1.096 MB / 0.5759 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001873/0.7882, allocations: 61.34 kB / 0.5759 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01204/0.8002, allocations: 6.519 MB / 0.5823 GB, free: 500 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008511/0.8011, allocations: 495.3 kB / 0.5828 GB, free: 332 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.8023, allocations: 0.578 MB / 0.5833 GB, free: 280 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.8138, allocations: 4.767 MB / 0.588 GB, free: 14.51 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.8138, allocations: 2.906 kB / 0.588 GB, free: 14.51 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.8139, allocations: 4 kB / 0.588 GB, free: 14.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.8139, allocations: 0 / 0.588 GB, free: 14.5 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.004848/0.8187, allocations: 2.069 MB / 0.59 GB, free: 13.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.228e-05/0.8188, allocations: 10.81 kB / 0.59 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.8191, allocations: 156.7 kB / 0.5902 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000452/0.8196, allocations: 126.9 kB / 0.5903 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.8206, allocations: 0.6807 MB / 0.591 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.8207, allocations: 135.4 kB / 0.5911 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.8209, allocations: 83.62 kB / 0.5912 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.8232, allocations: 1.463 MB / 0.5926 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.185e-05/0.8233, allocations: 5.531 kB / 0.5926 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/0.8235, allocations: 37.17 kB / 0.5927 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-05/0.8235, allocations: 71.95 kB / 0.5927 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.8258, allocations: 1.459 MB / 0.5941 GB, free: 11.85 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.008681/0.8345, allocations: 6.328 MB / 0.6003 GB, free: 7.383 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.8364, allocations: 0.9786 MB / 0.6013 GB, free: 6.723 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007605/0.8372, allocations: 0.5262 MB / 0.6018 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/0.8387, allocations: 1.802 MB / 0.6036 GB, free: 4.238 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.8388, allocations: 48.38 kB / 0.6036 GB, free: 4.191 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005194/0.8393, allocations: 100.8 kB / 0.6037 GB, free: 4.105 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 5.501e-06/0.8393, allocations: 0 / 0.6037 GB, free: 4.105 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.0171/0.8564, allocations: 4.781 MB / 0.6084 GB, free: 388 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.689e-05/0.8566, allocations: 118.1 kB / 0.6085 GB, free: 248 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.8579, allocations: 0.7784 MB / 0.6092 GB, free: 15.64 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.8581, allocations: 48.08 kB / 0.6093 GB, free: 15.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003733/0.8585, allocations: 445.9 kB / 0.6097 GB, free: 15.29 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00037/0.8588, allocations: 343.6 kB / 0.61 GB, free: 15 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004792/0.8593, allocations: 256.7 kB / 0.6103 GB, free: 14.83 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.8595, allocations: 402.4 kB / 0.6107 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.8609, allocations: 0.6132 MB / 0.6113 GB, free: 14.01 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.8625, allocations: 0.9595 MB / 0.6122 GB, free: 12.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/0.8653, allocations: 1.66 MB / 0.6138 GB, free: 11.14 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.8654, allocations: 4 kB / 0.6138 GB, free: 11.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003937/0.8693, allocations: 1.94 MB / 0.6157 GB, free: 9.238 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.392e-05/0.8694, allocations: 63.41 kB / 0.6158 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.8694, allocations: 11.94 kB / 0.6158 GB, free: 9.152 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.8709, allocations: 312.7 kB / 0.6161 GB, free: 8.848 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.872, allocations: 269.4 kB / 0.6164 GB, free: 8.602 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.8736, allocations: 0.9172 MB / 0.6172 GB, free: 7.664 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.8748, allocations: 103.8 kB / 0.6173 GB, free: 7.562 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.875, allocations: 71.97 kB / 0.6174 GB, free: 7.492 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001521/0.8765, allocations: 0.851 MB / 0.6182 GB, free: 6.637 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001485/0.878, allocations: 0.9438 MB / 0.6192 GB, free: 5.551 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002604/0.8806, allocations: 1.638 MB / 0.6208 GB, free: 3.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.82e-06/0.8806, allocations: 0 / 0.6208 GB, free: 3.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.004078/0.8847, allocations: 1.908 MB / 0.6226 GB, free: 1.934 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.558e-05/0.8848, allocations: 63.41 kB / 0.6227 GB, free: 1.859 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.8848, allocations: 8 kB / 0.6227 GB, free: 1.852 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00193/0.8868, allocations: 319.9 kB / 0.623 GB, free: 1.539 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/0.8883, allocations: 269.8 kB / 0.6233 GB, free: 1.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.89, allocations: 0.9034 MB / 0.6241 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.8914, allocations: 107.8 kB / 0.6242 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/0.8915, allocations: 71.97 kB / 0.6243 GB, free: 200 kB / 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.0005016/0.892, allocations: 262.1 kB / 0.6246 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/0.8924, allocations: 102.8 kB / 0.6247 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004399/0.8968, allocations: 1.957 MB / 0.6266 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/0.8968, allocations: 15.98 kB / 0.6266 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.8969, allocations: 0 / 0.6266 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.8969, allocations: 10.52 kB / 0.6266 GB, free: 13.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006249/0.9031, allocations: 3.094 MB / 0.6296 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.9032, allocations: 7.938 kB / 0.6296 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000895/0.9041, allocations: 179.3 kB / 0.6298 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/0.9061, allocations: 388 kB / 0.6302 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.9063, allocations: 35.98 kB / 0.6302 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.9079, allocations: 0.8791 MB / 0.6311 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.9079, allocations: 4 kB / 0.6311 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005036/0.913, allocations: 2.372 MB / 0.6334 GB, free: 6.785 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008851/0.9139, allocations: 326.6 kB / 0.6337 GB, free: 6.449 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000352/0.9143, allocations: 28.88 kB / 0.6337 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.9154, allocations: 79.92 kB / 0.6338 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002819/0.9157, allocations: 76.83 kB / 0.6339 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/0.916, allocations: 55.97 kB / 0.6339 GB, free: 6.215 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000988/0.917, allocations: 0.5693 MB / 0.6345 GB, free: 5.652 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.917, allocations: 0 / 0.6345 GB, free: 5.652 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004274/0.9213, allocations: 1.144 MB / 0.6356 GB, free: 4.508 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.009814/0.9311, allocations: 3.91 MB / 0.6394 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005897/0.937, allocations: 2.623 MB / 0.642 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/0.9371, allocations: 2.062 kB / 0.642 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.9388, allocations: 0.7393 MB / 0.6427 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/0.9419, allocations: 0.5352 MB / 0.6432 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/0.9662, allocations: 12.01 MB / 0.655 GB, free: 304 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.9673, allocations: 1.12 MB / 0.6561 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002627/0.9699, allocations: 0.7142 MB / 0.6567 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006982/0.9706, allocations: 403.3 kB / 0.6571 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of SimCode: time 1.273e-06/0.9707, allocations: 2.531 kB / 0.6571 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08562/1.056, allocations: 49.34 MB / 0.7053 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000311/1.057, allocations: 263.7 kB / 0.7056 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.344/4.4, allocations: 0 / 0.7056 GB, free: 12.66 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)