Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_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.001205/0.001205, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001236/0.001236, allocations: 191.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 56.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07897/0.08016, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3545/0.4347, allocations: 212.8 MB / 0.5275 GB, free: 2.047 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1961/0.6308, allocations: 13.18 MB / 0.5403 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008347/0.6317, allocations: 24.16 kB / 0.5404 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.6329, allocations: 467.5 kB / 0.5408 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008365/0.6413, allocations: 3.612 MB / 0.5443 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006377/0.6477, allocations: 2.856 MB / 0.5471 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002634/0.6504, allocations: 2.63 MB / 0.5497 GB, free: 496 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.6515, allocations: 0.7872 MB / 0.5505 GB, free: 432 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00593/0.6575, allocations: 3.098 MB / 0.5535 GB, free: 368 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.6593, allocations: 1.067 MB / 0.5545 GB, free: 368 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004653/0.6598, allocations: 122.2 kB / 0.5547 GB, free: 368 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01144/0.6712, allocations: 6.511 MB / 0.561 GB, free: 312 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008592/0.6721, allocations: 0.5349 MB / 0.5615 GB, free: 312 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.6735, allocations: 0.6383 MB / 0.5622 GB, free: 312 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.6839, allocations: 4.895 MB / 0.5669 GB, free: 8 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.6839, allocations: 2.219 kB / 0.5669 GB, free: 8 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.6839, allocations: 1.094 kB / 0.5669 GB, free: 8 kB / 430.1 MB Notification: Performance of Transformations before backend: time 4.419e-05/0.684, allocations: 0 / 0.5669 GB, free: 8 kB / 430.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.005388/0.6894, allocations: 2.143 MB / 0.569 GB, free: 14.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.6894, allocations: 7.156 kB / 0.569 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.6896, allocations: 146.8 kB / 0.5692 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000486/0.6901, allocations: 129.9 kB / 0.5693 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.6912, allocations: 0.6845 MB / 0.57 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.6913, allocations: 133.9 kB / 0.5701 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.6914, allocations: 91.38 kB / 0.5702 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.6934, allocations: 1.466 MB / 0.5716 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.6935, allocations: 4.156 kB / 0.5716 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.6936, allocations: 39.38 kB / 0.5717 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.006e-05/0.6937, allocations: 71.39 kB / 0.5717 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.6957, allocations: 1.474 MB / 0.5732 GB, free: 13.95 MB / 446.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.00788/0.7035, allocations: 6.357 MB / 0.5794 GB, free: 9.777 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.7053, allocations: 0.9851 MB / 0.5803 GB, free: 9.605 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006987/0.706, allocations: 0.5299 MB / 0.5809 GB, free: 9.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001644/0.7076, allocations: 2.057 MB / 0.5829 GB, free: 7.277 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.7077, allocations: 46 kB / 0.5829 GB, free: 7.238 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003988/0.7081, allocations: 93.81 kB / 0.583 GB, free: 7.188 MB / 446.1 MB Notification: Performance of pre-optimization done (n=84): time 3.817e-06/0.7081, allocations: 0 / 0.583 GB, free: 7.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.0158/0.7239, allocations: 4.815 MB / 0.5877 GB, free: 5.031 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.724, allocations: 111.8 kB / 0.5878 GB, free: 4.895 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009439/0.725, allocations: 0.7766 MB / 0.5886 GB, free: 4.293 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.7251, allocations: 47.14 kB / 0.5886 GB, free: 4.254 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.7254, allocations: 456.6 kB / 0.589 GB, free: 3.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.7256, allocations: 337.1 kB / 0.5894 GB, free: 3.648 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003949/0.726, allocations: 254.8 kB / 0.5896 GB, free: 3.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.7262, allocations: 408.6 kB / 0.59 GB, free: 3.109 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.7274, allocations: 0.6176 MB / 0.5906 GB, free: 2.695 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.7287, allocations: 0.9635 MB / 0.5915 GB, free: 1.836 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.7314, allocations: 1.66 MB / 0.5932 GB, free: 100 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.7314, allocations: 4.719 kB / 0.5932 GB, free: 96 kB / 446.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003828/0.7353, allocations: 1.932 MB / 0.5951 GB, free: 14.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.155e-05/0.7353, allocations: 64.2 kB / 0.5951 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.7354, allocations: 12 kB / 0.5951 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/0.7368, allocations: 317.5 kB / 0.5954 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.7379, allocations: 275.6 kB / 0.5957 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.7394, allocations: 0.9115 MB / 0.5966 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009627/0.7404, allocations: 61.09 kB / 0.5966 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.7406, allocations: 75.97 kB / 0.5967 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001461/0.742, allocations: 0.8499 MB / 0.5975 GB, free: 11.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001366/0.7434, allocations: 0.9521 MB / 0.5985 GB, free: 10.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002583/0.746, allocations: 1.629 MB / 0.6001 GB, free: 8.828 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.783e-06/0.746, allocations: 8 kB / 0.6001 GB, free: 8.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.003757/0.7498, allocations: 1.916 MB / 0.6019 GB, free: 6.945 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.7498, allocations: 63.41 kB / 0.602 GB, free: 6.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.7499, allocations: 8.594 kB / 0.602 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.7513, allocations: 308.6 kB / 0.6023 GB, free: 6.559 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.7523, allocations: 275.5 kB / 0.6026 GB, free: 6.305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.7538, allocations: 0.9078 MB / 0.6035 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009667/0.7548, allocations: 72.02 kB / 0.6035 GB, free: 5.312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/0.755, allocations: 75.17 kB / 0.6036 GB, free: 5.242 MB / 462.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.0003718/0.7553, allocations: 267.7 kB / 0.6039 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.7556, allocations: 95.88 kB / 0.6039 GB, free: 4.895 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003859/0.7595, allocations: 1.924 MB / 0.6058 GB, free: 2.949 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.7595, allocations: 12 kB / 0.6058 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.7595, allocations: 0 / 0.6058 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.7595, allocations: 8.672 kB / 0.6058 GB, free: 2.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/0.7648, allocations: 3.034 MB / 0.6088 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.7648, allocations: 0 / 0.6088 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/0.7656, allocations: 189.3 kB / 0.609 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.7673, allocations: 375.4 kB / 0.6093 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.311e-05/0.7675, allocations: 47.95 kB / 0.6094 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.7688, allocations: 0.8755 MB / 0.6102 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7688, allocations: 4.031 kB / 0.6102 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004331/0.7732, allocations: 2.417 MB / 0.6126 GB, free: 11.92 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005151/0.7737, allocations: 319.8 kB / 0.6129 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.7739, allocations: 31.89 kB / 0.6129 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008811/0.7748, allocations: 59.05 kB / 0.613 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.775, allocations: 72.89 kB / 0.6131 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.7751, allocations: 63.97 kB / 0.6131 GB, free: 11.37 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006988/0.7758, allocations: 0.5731 MB / 0.6137 GB, free: 10.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7758, allocations: 0 / 0.6137 GB, free: 10.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003128/0.7789, allocations: 1.163 MB / 0.6148 GB, free: 9.637 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.007718/0.7867, allocations: 4.005 MB / 0.6187 GB, free: 5.684 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006045/0.7927, allocations: 2.955 MB / 0.6216 GB, free: 2.762 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.375e-06/0.7927, allocations: 4.438 kB / 0.6216 GB, free: 2.758 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.7942, allocations: 0.7437 MB / 0.6224 GB, free: 2.043 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.7969, allocations: 0.5622 MB / 0.6229 GB, free: 1.492 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.8168, allocations: 11.68 MB / 0.6343 GB, free: 5.336 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.8175, allocations: 1.122 MB / 0.6354 GB, free: 4.188 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00209/0.8196, allocations: 0.6057 MB / 0.636 GB, free: 3.578 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006515/0.8203, allocations: 411.3 kB / 0.6364 GB, free: 3.176 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/0.8203, allocations: 0 / 0.6364 GB, free: 3.176 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07947/0.8997, allocations: 52.05 MB / 0.6872 GB, free: 15.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.95, allocations: 23.77 kB / 0.6872 GB, free: 15.02 MB / 0.545 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1)