Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_cpp_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.001642/0.001641, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.3e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09651, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.8/10.9, allocations: 3.612 GB / 3.972 GB, free: 117.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/10.9, allocations: 79.7 kB / 3.972 GB, free: 117.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046/13.94, allocations: 0.5516 GB / 4.524 GB, free: 36.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/13.94, allocations: 0 / 4.524 GB, free: 36.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.393e-05/13.94, allocations: 25.92 kB / 4.524 GB, free: 36.07 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.01208/13.96, allocations: 2.987 MB / 4.527 GB, free: 34.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/13.96, allocations: 11.75 kB / 4.527 GB, free: 34.38 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005289/13.96, allocations: 144.6 kB / 4.527 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007454/13.96, allocations: 129.3 kB / 4.527 GB, free: 34.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002695/13.96, allocations: 0.7299 MB / 4.528 GB, free: 33.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/13.96, allocations: 132.4 kB / 4.528 GB, free: 33.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003667/13.96, allocations: 90.98 kB / 4.528 GB, free: 33.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003903/13.96, allocations: 1.433 MB / 4.53 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-05/13.96, allocations: 0 / 4.53 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/13.96, allocations: 40.14 kB / 4.53 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/13.96, allocations: 72.55 kB / 4.53 GB, free: 33.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003944/13.97, allocations: 1.414 MB / 4.531 GB, free: 33.64 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.01371/13.98, allocations: 6.06 MB / 4.537 GB, free: 30.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/13.98, allocations: 0.9494 MB / 4.538 GB, free: 30.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/13.99, allocations: 0.5038 MB / 4.538 GB, free: 30.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001776/13.99, allocations: 1.752 MB / 4.54 GB, free: 28.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/13.99, allocations: 46.94 kB / 4.54 GB, free: 28.66 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001012/13.99, allocations: 115.6 kB / 4.54 GB, free: 28.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.637e-06/13.99, allocations: 0 / 4.54 GB, free: 28.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.02611/14.02, allocations: 4.405 MB / 4.545 GB, free: 28.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/14.02, allocations: 120.5 kB / 4.545 GB, free: 27.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/14.02, allocations: 0.6754 MB / 4.545 GB, free: 27.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002934/14.02, allocations: 48.39 kB / 4.545 GB, free: 27.81 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00032/14.02, allocations: 471.8 kB / 4.546 GB, free: 27.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004687/14.02, allocations: 345.9 kB / 4.546 GB, free: 27.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/14.02, allocations: 31.23 kB / 4.546 GB, free: 27.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/14.02, allocations: 359 kB / 4.547 GB, free: 26.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/14.02, allocations: 0.5518 MB / 4.547 GB, free: 26.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/14.02, allocations: 0.8916 MB / 4.548 GB, free: 26.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/14.02, allocations: 0.7386 MB / 4.549 GB, free: 26.51 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.515e-05/14.02, allocations: 3.531 kB / 4.549 GB, free: 26.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004926/14.03, allocations: 1.73 MB / 4.55 GB, free: 26.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009589/14.03, allocations: 3.98 MB / 4.554 GB, free: 22.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/14.03, allocations: 9.844 kB / 4.554 GB, free: 22.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/14.03, allocations: 246.4 kB / 4.555 GB, free: 22.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002354/14.03, allocations: 276.9 kB / 4.555 GB, free: 22.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/14.04, allocations: 0.8118 MB / 4.556 GB, free: 21.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/14.04, allocations: 109.8 kB / 4.556 GB, free: 21.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/14.04, allocations: 77.81 kB / 4.556 GB, free: 21.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/14.04, allocations: 13.09 kB / 4.556 GB, free: 21.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004296/14.04, allocations: 1.663 MB / 4.557 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/14.04, allocations: 8.531 kB / 4.557 GB, free: 21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/14.04, allocations: 247.4 kB / 4.558 GB, free: 20.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002227/14.05, allocations: 269.8 kB / 4.558 GB, free: 20.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/14.05, allocations: 0.8213 MB / 4.559 GB, free: 20.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/14.05, allocations: 104.8 kB / 4.559 GB, free: 20.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000217/14.05, allocations: 80.81 kB / 4.559 GB, free: 20.23 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.0005488/14.05, allocations: 190.8 kB / 4.559 GB, free: 20.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003508/14.05, allocations: 98.41 kB / 4.559 GB, free: 20.01 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/14.06, allocations: 1.798 MB / 4.561 GB, free: 19.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/14.06, allocations: 10.53 kB / 4.561 GB, free: 19.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/14.06, allocations: 7.391 kB / 4.561 GB, free: 19.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/14.06, allocations: 6.953 kB / 4.561 GB, free: 19.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006911/14.06, allocations: 2.872 MB / 4.564 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/14.06, allocations: 3.031 kB / 4.564 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/14.06, allocations: 191.4 kB / 4.564 GB, free: 18.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/14.07, allocations: 303 kB / 4.564 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/14.07, allocations: 41.06 kB / 4.564 GB, free: 17.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/14.07, allocations: 0.7853 MB / 4.565 GB, free: 17.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/14.07, allocations: 0 / 4.565 GB, free: 17.31 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005072/14.07, allocations: 2.268 MB / 4.567 GB, free: 16.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/14.07, allocations: 343.4 kB / 4.568 GB, free: 16.01 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002925/14.07, allocations: 27.12 kB / 4.568 GB, free: 16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/14.08, allocations: 82.81 kB / 4.568 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/14.08, allocations: 79.12 kB / 4.568 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/14.08, allocations: 62.42 kB / 4.568 GB, free: 15.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001007/14.08, allocations: 0.5334 MB / 4.568 GB, free: 15.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/14.08, allocations: 0 / 4.568 GB, free: 15.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005724/14.08, allocations: 1.358 MB / 4.57 GB, free: 15.36 MB / 442.7 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 () * 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 (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.01153/14.09, allocations: 5.154 MB / 4.575 GB, free: 11.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006219/14.1, allocations: 2.48 MB / 4.577 GB, free: 9.254 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/14.1, allocations: 4.438 kB / 4.577 GB, free: 9.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/14.1, allocations: 0.677 MB / 4.578 GB, free: 8.637 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004118/14.11, allocations: 497.9 kB / 4.578 GB, free: 8.273 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/14.12, allocations: 2.722 MB / 4.581 GB, free: 5.867 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/14.12, allocations: 1.143 MB / 4.582 GB, free: 4.855 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/14.12, allocations: 434.3 kB / 4.582 GB, free: 4.473 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/14.12, allocations: 0 / 4.582 GB, free: 4.473 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.074/18.19, allocations: 41.61 MB / 4.623 GB, free: 46.98 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat