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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009221/0.000922, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.576/1.576, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008531/0.0008529, allocations: 82.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.039e-05/2.042e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08595/0.08599, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.886/7.972, allocations: 3.611 GB / 3.966 GB, free: 133.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/7.972, allocations: 82.94 kB / 3.966 GB, free: 133.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.216/10.19, allocations: 0.5464 GB / 4.513 GB, free: 38.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.443e-06/10.19, allocations: 0 / 4.513 GB, free: 38.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.183e-05/10.19, allocations: 29.88 kB / 4.513 GB, free: 38.82 MB / 442.7 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.01257/10.2, allocations: 2.988 MB / 4.516 GB, free: 37.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.388e-05/10.2, allocations: 8.562 kB / 4.516 GB, free: 37.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008501/10.2, allocations: 133 kB / 4.516 GB, free: 37.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/10.2, allocations: 0.7278 MB / 4.516 GB, free: 36.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/10.2, allocations: 100.7 kB / 4.516 GB, free: 36.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/10.2, allocations: 50 kB / 4.517 GB, free: 36.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002125/10.21, allocations: 1.288 MB / 4.518 GB, free: 36.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/10.21, allocations: 1.304 MB / 4.519 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.412e-05/10.21, allocations: 3.906 kB / 4.519 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/10.21, allocations: 3.812 kB / 4.519 GB, free: 36.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.3e-05/10.21, allocations: 63.41 kB / 4.519 GB, free: 36.47 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008576/10.22, allocations: 6.365 MB / 4.525 GB, free: 32.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/10.22, allocations: 0.8517 MB / 4.526 GB, free: 32.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/10.22, allocations: 461 kB / 4.527 GB, free: 32.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009162/10.22, allocations: 1.241 MB / 4.528 GB, free: 31.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/10.22, allocations: 50.64 kB / 4.528 GB, free: 31.53 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006162/10.22, allocations: 72.39 kB / 4.528 GB, free: 31.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 2.725e-06/10.22, allocations: 5.5 kB / 4.528 GB, free: 31.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.01503/10.24, allocations: 4.252 MB / 4.532 GB, free: 31.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/10.24, allocations: 113.7 kB / 4.532 GB, free: 30.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007634/10.24, allocations: 0.5535 MB / 4.533 GB, free: 30.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/10.24, allocations: 25.7 kB / 4.533 GB, free: 30.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/10.24, allocations: 477.4 kB / 4.533 GB, free: 30.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002508/10.24, allocations: 315.5 kB / 4.534 GB, free: 30.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/10.24, allocations: 0 / 4.534 GB, free: 30.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/10.24, allocations: 387.9 kB / 4.534 GB, free: 29.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000739/10.24, allocations: 0.5313 MB / 4.534 GB, free: 29.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008859/10.24, allocations: 0.8642 MB / 4.535 GB, free: 29.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004704/10.24, allocations: 1.345 MB / 4.537 GB, free: 29.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/10.24, allocations: 3.562 kB / 4.537 GB, free: 29.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006798/10.25, allocations: 2.28 MB / 4.539 GB, free: 29.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001158/10.25, allocations: 3.98 MB / 4.543 GB, free: 25.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/10.25, allocations: 10.06 kB / 4.543 GB, free: 25.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/10.25, allocations: 248.6 kB / 4.543 GB, free: 25.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/10.25, allocations: 275.3 kB / 4.543 GB, free: 25.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009335/10.25, allocations: 0.841 MB / 4.544 GB, free: 24.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/10.26, allocations: 91.52 kB / 4.544 GB, free: 24.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/10.26, allocations: 77.2 kB / 4.544 GB, free: 24.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/10.26, allocations: 5.344 kB / 4.544 GB, free: 24.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006088/10.26, allocations: 2.135 MB / 4.546 GB, free: 24.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/10.26, allocations: 13.69 kB / 4.546 GB, free: 24.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008902/10.26, allocations: 245.9 kB / 4.547 GB, free: 24.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/10.26, allocations: 276.4 kB / 4.547 GB, free: 24.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007548/10.27, allocations: 0.8364 MB / 4.548 GB, free: 23.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/10.27, allocations: 82.42 kB / 4.548 GB, free: 23.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/10.27, allocations: 82.27 kB / 4.548 GB, free: 23.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004863/10.27, allocations: 138.3 kB / 4.548 GB, free: 23.52 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003451/10.27, allocations: 1.4 MB / 4.549 GB, free: 23.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/10.27, allocations: 83.19 kB / 4.549 GB, free: 23.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00376/10.27, allocations: 1.756 MB / 4.551 GB, free: 22.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/10.27, allocations: 14.61 kB / 4.551 GB, free: 22.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/10.27, allocations: 3.875 kB / 4.551 GB, free: 22.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/10.27, allocations: 6.328 kB / 4.551 GB, free: 22.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/10.28, allocations: 3.726 MB / 4.555 GB, free: 20.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/10.28, allocations: 7.375 kB / 4.555 GB, free: 20.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/10.28, allocations: 176.4 kB / 4.555 GB, free: 20.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/10.28, allocations: 313.8 kB / 4.555 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-05/10.28, allocations: 26.31 kB / 4.555 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007422/10.29, allocations: 0.8155 MB / 4.556 GB, free: 20.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/10.29, allocations: 7.312 kB / 4.556 GB, free: 20.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004194/10.29, allocations: 2.429 MB / 4.558 GB, free: 18.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/10.29, allocations: 321.5 kB / 4.559 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/10.29, allocations: 11.12 kB / 4.559 GB, free: 18.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009277/10.29, allocations: 66.25 kB / 4.559 GB, free: 18.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/10.29, allocations: 71.14 kB / 4.559 GB, free: 18.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/10.29, allocations: 60.34 kB / 4.559 GB, free: 18.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005575/10.29, allocations: 418.7 kB / 4.559 GB, free: 18.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/10.29, allocations: 0 / 4.559 GB, free: 18.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005242/10.3, allocations: 1.267 MB / 4.561 GB, free: 18.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009836/10.31, allocations: 5.917 MB / 4.566 GB, free: 14.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003782/10.31, allocations: 2.362 MB / 4.569 GB, free: 12.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/10.31, allocations: 4.688 kB / 4.569 GB, free: 12.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/10.31, allocations: 0.6345 MB / 4.569 GB, free: 12.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/10.31, allocations: 390.5 kB / 4.57 GB, free: 11.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/10.32, allocations: 2.555 MB / 4.572 GB, free: 9.605 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/10.32, allocations: 1.141 MB / 4.573 GB, free: 8.594 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002098/10.32, allocations: 0.5934 MB / 4.574 GB, free: 8.176 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/10.32, allocations: 390.6 kB / 4.574 GB, free: 7.832 MB / 442.7 MB Notification: Performance of SimCode: time 1.443e-06/10.32, allocations: 4 kB / 4.574 GB, free: 7.828 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4287/10.75, allocations: 50.2 MB / 4.623 GB, free: 50.4 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/10.75, allocations: 163 kB / 4.623 GB, free: 50.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.133/14.89, allocations: 0 / 4.623 GB, free: 50.21 MB / 458.7 MB (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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat