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.001296/0.001296, allocations: 104.9 kB / 16.92 MB, free: 6.145 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.001349/0.001349, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.31/1.31, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009392/0.0009393, allocations: 43.53 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0756/0.07656, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.5824/0.659, allocations: 205 MB / 0.5421 GB, free: 1.164 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.6712, allocations: 10.37 MB / 0.5523 GB, free: 1.121 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007906/0.672, allocations: 23.16 kB / 0.5523 GB, free: 1.121 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.6732, allocations: 471 kB / 0.5527 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007153/0.6804, allocations: 3.183 MB / 0.5558 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006302/0.6867, allocations: 2.692 MB / 0.5585 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002816/0.6895, allocations: 2.63 MB / 0.561 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009988/0.6905, allocations: 0.7775 MB / 0.5618 GB, free: 16.85 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005431/0.696, allocations: 2.779 MB / 0.5645 GB, free: 16.8 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.6976, allocations: 1.07 MB / 0.5656 GB, free: 16.79 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.6978, allocations: 120.5 kB / 0.5657 GB, free: 16.79 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009799/0.7076, allocations: 6.081 MB / 0.5716 GB, free: 16.74 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005921/0.7082, allocations: 0.5352 MB / 0.5721 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009675/0.7092, allocations: 0.6422 MB / 0.5728 GB, free: 16.73 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008804/0.718, allocations: 4.616 MB / 0.5773 GB, free: 16.48 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7181, allocations: 0 / 0.5773 GB, free: 16.48 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.7181, allocations: 0.875 kB / 0.5773 GB, free: 16.48 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.7181, allocations: 0 / 0.5773 GB, free: 16.48 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.004413/0.7225, allocations: 2.046 MB / 0.5793 GB, free: 15.41 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.7226, allocations: 11.44 kB / 0.5793 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002132/0.7228, allocations: 148.8 kB / 0.5794 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.7232, allocations: 134.2 kB / 0.5796 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.7243, allocations: 0.6729 MB / 0.5802 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.7245, allocations: 130 kB / 0.5803 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.7247, allocations: 89.19 kB / 0.5804 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.7269, allocations: 1.466 MB / 0.5819 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.7269, allocations: 7.266 kB / 0.5819 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.7271, allocations: 39.89 kB / 0.5819 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.086e-05/0.7272, allocations: 68.19 kB / 0.582 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.7292, allocations: 1.468 MB / 0.5834 GB, free: 14.45 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.007677/0.7369, allocations: 6.346 MB / 0.5896 GB, free: 10.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.7386, allocations: 0.9704 MB / 0.5905 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006597/0.7392, allocations: 0.5282 MB / 0.5911 GB, free: 10.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001247/0.7405, allocations: 1.797 MB / 0.5928 GB, free: 8.004 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.7405, allocations: 45.62 kB / 0.5929 GB, free: 7.965 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003145/0.7408, allocations: 101.5 kB / 0.593 GB, free: 7.906 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.394e-06/0.7409, allocations: 0 / 0.593 GB, free: 7.906 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01498/0.7558, allocations: 4.793 MB / 0.5976 GB, free: 6.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.7559, allocations: 118.1 kB / 0.5977 GB, free: 6.477 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008237/0.7568, allocations: 0.7735 MB / 0.5985 GB, free: 6.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.501e-05/0.7569, allocations: 48.86 kB / 0.5985 GB, free: 5.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.7571, allocations: 445.6 kB / 0.599 GB, free: 5.664 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.7574, allocations: 346.3 kB / 0.5993 GB, free: 5.379 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.7578, allocations: 248.8 kB / 0.5995 GB, free: 5.215 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.7579, allocations: 401 kB / 0.5999 GB, free: 4.852 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.7591, allocations: 0.62 MB / 0.6005 GB, free: 4.438 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.7605, allocations: 0.9583 MB / 0.6015 GB, free: 3.422 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.7631, allocations: 1.66 MB / 0.6031 GB, free: 1.672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.7631, allocations: 4 kB / 0.6031 GB, free: 1.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00364/0.7668, allocations: 1.926 MB / 0.605 GB, free: 15.78 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.685e-05/0.7668, allocations: 71.34 kB / 0.605 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.7669, allocations: 8 kB / 0.605 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.7683, allocations: 313.4 kB / 0.6053 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.7694, allocations: 267.5 kB / 0.6056 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.7709, allocations: 0.9049 MB / 0.6065 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008854/0.7718, allocations: 63.95 kB / 0.6065 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.772, allocations: 67.98 kB / 0.6066 GB, free: 14.09 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001421/0.7734, allocations: 0.8499 MB / 0.6074 GB, free: 13.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001381/0.7748, allocations: 0.9454 MB / 0.6084 GB, free: 12.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002563/0.7774, allocations: 1.637 MB / 0.61 GB, free: 10.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.232e-06/0.7774, allocations: 8 kB / 0.61 GB, free: 10.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003732/0.7811, allocations: 1.898 MB / 0.6118 GB, free: 8.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.7812, allocations: 67.39 kB / 0.6119 GB, free: 8.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.7812, allocations: 8.594 kB / 0.6119 GB, free: 8.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.7826, allocations: 315.7 kB / 0.6122 GB, free: 8.137 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.7836, allocations: 266.7 kB / 0.6124 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.7852, allocations: 0.9098 MB / 0.6133 GB, free: 6.965 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009251/0.7861, allocations: 68.02 kB / 0.6134 GB, free: 6.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.7863, allocations: 73.17 kB / 0.6135 GB, free: 6.828 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.0003995/0.7867, allocations: 259 kB / 0.6137 GB, free: 6.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.787, allocations: 100 kB / 0.6138 GB, free: 6.488 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/0.7908, allocations: 1.964 MB / 0.6157 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.7908, allocations: 12 kB / 0.6157 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.7909, allocations: 0 / 0.6157 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.7909, allocations: 7.984 kB / 0.6158 GB, free: 4.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/0.7962, allocations: 3.106 MB / 0.6188 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.7962, allocations: 0 / 0.6188 GB, free: 1.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/0.797, allocations: 184.5 kB / 0.619 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/0.7988, allocations: 380.2 kB / 0.6193 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.7989, allocations: 37.53 kB / 0.6194 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.8003, allocations: 0.8831 MB / 0.6202 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.8003, allocations: 4.031 kB / 0.6202 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.8045, allocations: 2.381 MB / 0.6225 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005487/0.805, allocations: 319.7 kB / 0.6229 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.8052, allocations: 35.98 kB / 0.6229 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008894/0.8061, allocations: 59.95 kB / 0.6229 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.8063, allocations: 68.09 kB / 0.623 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8064, allocations: 59.89 kB / 0.6231 GB, free: 12.87 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006815/0.8071, allocations: 0.5693 MB / 0.6236 GB, free: 12.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8071, allocations: 0.5469 kB / 0.6236 GB, free: 12.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003173/0.8103, allocations: 1.128 MB / 0.6247 GB, free: 11.18 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.007546/0.8179, allocations: 3.877 MB / 0.6285 GB, free: 7.344 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005632/0.8235, allocations: 2.939 MB / 0.6314 GB, free: 4.445 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.8235, allocations: 448 / 0.6314 GB, free: 4.445 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.8249, allocations: 0.7425 MB / 0.6321 GB, free: 3.723 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/0.8274, allocations: 0.558 MB / 0.6327 GB, free: 3.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/0.8457, allocations: 11.66 MB / 0.644 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006785/0.8464, allocations: 1.122 MB / 0.6451 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001933/0.8484, allocations: 0.7071 MB / 0.6458 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/0.849, allocations: 399.3 kB / 0.6462 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of SimCode: time 7.22e-07/0.849, allocations: 0 / 0.6462 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07952/0.9285, allocations: 50.36 MB / 0.6954 GB, free: 2.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/13.16, allocations: 18.55 kB / 0.6954 GB, free: 2.805 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)