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.0008339/0.0008339, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009699/0.00097, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002017, allocations: 4 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07434/0.07456, allocations: 51.52 MB / 359.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5042/0.5788, allocations: 205.5 MB / 0.5516 GB, free: 1.355 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.5894, allocations: 10.69 MB / 0.562 GB, free: 1.176 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000784/0.5902, allocations: 26.16 kB / 0.562 GB, free: 1.176 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.5912, allocations: 418.2 kB / 0.5624 GB, free: 1.168 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006438/0.5977, allocations: 2.837 MB / 0.5652 GB, free: 1.023 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005691/0.6034, allocations: 2.297 MB / 0.5675 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003026/0.6064, allocations: 3.791 MB / 0.5712 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.6075, allocations: 0.6596 MB / 0.5718 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00534/0.6129, allocations: 2.54 MB / 0.5743 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001815/0.6147, allocations: 1.088 MB / 0.5753 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.6151, allocations: 58.69 kB / 0.5754 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009446/0.6245, allocations: 6.516 MB / 0.5818 GB, free: 480 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007174/0.6253, allocations: 488.7 kB / 0.5822 GB, free: 320 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.6264, allocations: 0.6026 MB / 0.5828 GB, free: 16.23 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008439/0.6348, allocations: 4.738 MB / 0.5874 GB, free: 14.47 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.6349, allocations: 4 kB / 0.5875 GB, free: 14.46 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.6349, allocations: 0 / 0.5875 GB, free: 14.46 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.617e-05/0.6349, allocations: 0 / 0.5875 GB, free: 14.46 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.00426/0.6392, allocations: 1.838 MB / 0.5892 GB, free: 13.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.6392, allocations: 9.969 kB / 0.5893 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002916/0.6395, allocations: 149.3 kB / 0.5894 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004457/0.64, allocations: 126.4 kB / 0.5895 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.641, allocations: 0.6711 MB / 0.5902 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.6412, allocations: 143 kB / 0.5903 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.6413, allocations: 84.78 kB / 0.5904 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002134/0.6435, allocations: 1.463 MB / 0.5918 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.6435, allocations: 2.594 kB / 0.5918 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.6436, allocations: 39.69 kB / 0.5919 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.295e-05/0.6437, allocations: 73.47 kB / 0.5919 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.6458, allocations: 1.463 MB / 0.5934 GB, free: 11.87 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.007283/0.6531, allocations: 6.359 MB / 0.5996 GB, free: 7.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.6547, allocations: 0.9792 MB / 0.6005 GB, free: 7.492 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006884/0.6554, allocations: 0.5215 MB / 0.601 GB, free: 7.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001149/0.6566, allocations: 1.805 MB / 0.6028 GB, free: 5.379 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.6566, allocations: 45.19 kB / 0.6028 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003731/0.657, allocations: 104.2 kB / 0.6029 GB, free: 5.281 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 3.356e-06/0.657, allocations: 1.859 kB / 0.6029 GB, free: 5.281 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01464/0.6717, allocations: 4.954 MB / 0.6078 GB, free: 2.871 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.6717, allocations: 115.8 kB / 0.6079 GB, free: 2.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008515/0.6726, allocations: 0.7718 MB / 0.6086 GB, free: 2.137 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.6727, allocations: 45.39 kB / 0.6087 GB, free: 2.098 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.673, allocations: 447.8 kB / 0.6091 GB, free: 1.777 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.6732, allocations: 344.2 kB / 0.6094 GB, free: 1.492 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.6734, allocations: 110.6 kB / 0.6095 GB, free: 1.422 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6735, allocations: 405.7 kB / 0.6099 GB, free: 1.055 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.6746, allocations: 0.6114 MB / 0.6105 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.6759, allocations: 0.9639 MB / 0.6115 GB, free: 15.78 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002369/0.6783, allocations: 1.669 MB / 0.6131 GB, free: 14.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.6783, allocations: 4 kB / 0.6131 GB, free: 14.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00344/0.6817, allocations: 1.957 MB / 0.615 GB, free: 13.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002374/0.682, allocations: 454.1 kB / 0.6155 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.682, allocations: 12 kB / 0.6155 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/0.6836, allocations: 330 kB / 0.6158 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009805/0.6846, allocations: 272.5 kB / 0.616 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.686, allocations: 0.9265 MB / 0.6169 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.6871, allocations: 103.6 kB / 0.617 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.6873, allocations: 70.53 kB / 0.6171 GB, free: 11.06 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.6873, allocations: 4 kB / 0.6171 GB, free: 11.06 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003219/0.6905, allocations: 1.837 MB / 0.6189 GB, free: 9.555 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.6905, allocations: 15.97 kB / 0.6189 GB, free: 9.539 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/0.692, allocations: 335.5 kB / 0.6192 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009521/0.693, allocations: 274 kB / 0.6195 GB, free: 8.961 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.6944, allocations: 0.9202 MB / 0.6204 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009414/0.6954, allocations: 101.8 kB / 0.6205 GB, free: 7.926 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.6955, allocations: 71.97 kB / 0.6206 GB, free: 7.855 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.0005096/0.696, allocations: 423.4 kB / 0.621 GB, free: 7.449 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.6962, allocations: 102.8 kB / 0.6211 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003501/0.6997, allocations: 1.97 MB / 0.623 GB, free: 5.348 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.6997, allocations: 17.61 kB / 0.623 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6997, allocations: 2.906 kB / 0.623 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.6997, allocations: 7.984 kB / 0.623 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004628/0.7044, allocations: 3.111 MB / 0.6261 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.7044, allocations: 2.906 kB / 0.6261 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007546/0.7052, allocations: 180.6 kB / 0.6262 GB, free: 1.988 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00185/0.707, allocations: 404 kB / 0.6266 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.206e-05/0.7071, allocations: 39.92 kB / 0.6267 GB, free: 1.555 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.7084, allocations: 0.8909 MB / 0.6275 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7084, allocations: 0 / 0.6275 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003778/0.7122, allocations: 2.408 MB / 0.6299 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004816/0.7127, allocations: 335.7 kB / 0.6302 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.7129, allocations: 35.98 kB / 0.6302 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009102/0.7138, allocations: 75.84 kB / 0.6303 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.7139, allocations: 80.83 kB / 0.6304 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.714, allocations: 55.97 kB / 0.6304 GB, free: 13.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006226/0.7147, allocations: 0.5654 MB / 0.631 GB, free: 13.05 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.7147, allocations: 4 kB / 0.631 GB, free: 13.05 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002693/0.7174, allocations: 1.147 MB / 0.6321 GB, free: 11.91 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.006453/0.7238, allocations: 3.924 MB / 0.6359 GB, free: 8.031 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004263/0.7281, allocations: 2.633 MB / 0.6385 GB, free: 5.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.7281, allocations: 2.062 kB / 0.6385 GB, free: 5.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.7294, allocations: 0.7388 MB / 0.6392 GB, free: 4.711 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.7319, allocations: 0.5385 MB / 0.6398 GB, free: 4.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.7491, allocations: 12.18 MB / 0.6517 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.7497, allocations: 1.121 MB / 0.6528 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001799/0.7515, allocations: 0.7144 MB / 0.6534 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005441/0.7521, allocations: 403.3 kB / 0.6538 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.7521, allocations: 2.531 kB / 0.6538 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.125/6.877, allocations: 48.92 MB / 0.7016 GB, free: 4.688 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/6.877, allocations: 270.5 kB / 0.7019 GB, free: 4.328 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.857/10.73, allocations: 4.062 kB / 0.7019 GB, free: 4.324 MB / 0.545 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)