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.001445/0.001445, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 93.62 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.6e-05, allocations: 8 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3263, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.985/10.31, allocations: 3.611 GB / 3.965 GB, free: 117.7 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003835/10.31, allocations: 90.03 kB / 3.965 GB, free: 117.7 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.974/13.29, allocations: 0.5464 GB / 4.512 GB, free: 40.53 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.393e-06/13.29, allocations: 0 / 4.512 GB, free: 40.53 MB / 443.1 MB Notification: Performance of Transformations before backend: time 7.744e-05/13.29, allocations: 25.56 kB / 4.512 GB, free: 40.53 MB / 443.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.01163/13.3, allocations: 2.987 MB / 4.515 GB, free: 38.95 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/13.3, allocations: 10.31 kB / 4.515 GB, free: 38.95 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007239/13.3, allocations: 130.2 kB / 4.515 GB, free: 38.9 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/13.3, allocations: 0.7327 MB / 4.515 GB, free: 38.61 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/13.3, allocations: 103.2 kB / 4.516 GB, free: 38.55 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/13.3, allocations: 52.05 kB / 4.516 GB, free: 38.55 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002946/13.3, allocations: 1.284 MB / 4.517 GB, free: 38.54 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/13.31, allocations: 1.311 MB / 4.518 GB, free: 38.31 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.886e-05/13.31, allocations: 3.375 kB / 4.518 GB, free: 38.31 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/13.31, allocations: 3.844 kB / 4.518 GB, free: 38.31 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/13.31, allocations: 66.67 kB / 4.518 GB, free: 38.31 MB / 443.1 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.01225/13.32, allocations: 6.355 MB / 4.524 GB, free: 34.8 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/13.32, allocations: 0.8565 MB / 4.525 GB, free: 34.77 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008972/13.32, allocations: 464.6 kB / 4.526 GB, free: 34.77 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001172/13.32, allocations: 1.241 MB / 4.527 GB, free: 33.45 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.362e-05/13.32, allocations: 42.91 kB / 4.527 GB, free: 33.41 MB / 443.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007103/13.32, allocations: 72.58 kB / 4.527 GB, free: 33.38 MB / 443.1 MB Notification: Performance of pre-optimization done (n=78): time 3.647e-06/13.32, allocations: 2.125 kB / 4.527 GB, free: 33.38 MB / 443.1 MB Notification: Performance of matching and sorting (n=90): time 0.02325/13.35, allocations: 4.256 MB / 4.531 GB, free: 32.9 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/13.35, allocations: 115.7 kB / 4.531 GB, free: 32.78 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008973/13.35, allocations: 0.5445 MB / 4.532 GB, free: 32.64 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/13.35, allocations: 28.83 kB / 4.532 GB, free: 32.61 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/13.35, allocations: 0.4993 MB / 4.532 GB, free: 32.28 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003039/13.35, allocations: 316.6 kB / 4.533 GB, free: 32.07 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/13.35, allocations: 0 / 4.533 GB, free: 32.07 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/13.35, allocations: 361.3 kB / 4.533 GB, free: 31.76 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/13.35, allocations: 0.5318 MB / 4.533 GB, free: 31.76 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/13.35, allocations: 0.8616 MB / 4.534 GB, free: 31.38 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007987/13.36, allocations: 1.343 MB / 4.536 GB, free: 31.37 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/13.36, allocations: 2.688 kB / 4.536 GB, free: 31.37 MB / 443.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.01061/13.37, allocations: 2.256 MB / 4.538 GB, free: 31.27 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009039/13.37, allocations: 3.975 MB / 4.542 GB, free: 27.13 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/13.37, allocations: 15.22 kB / 4.542 GB, free: 27.13 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/13.37, allocations: 237.9 kB / 4.542 GB, free: 27.12 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/13.38, allocations: 275.9 kB / 4.542 GB, free: 27.12 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/13.38, allocations: 0.8452 MB / 4.543 GB, free: 26.59 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/13.38, allocations: 86.61 kB / 4.543 GB, free: 26.59 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/13.38, allocations: 82.5 kB / 4.543 GB, free: 26.59 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/13.38, allocations: 3.781 kB / 4.543 GB, free: 26.59 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01056/13.39, allocations: 2.138 MB / 4.545 GB, free: 26.5 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/13.39, allocations: 11.34 kB / 4.545 GB, free: 26.5 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001503/13.39, allocations: 244.7 kB / 4.546 GB, free: 26.49 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/13.39, allocations: 272 kB / 4.546 GB, free: 26.47 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/13.39, allocations: 0.8457 MB / 4.547 GB, free: 25.94 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/13.4, allocations: 81.83 kB / 4.547 GB, free: 25.93 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/13.4, allocations: 76.48 kB / 4.547 GB, free: 25.93 MB / 443.1 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.0005241/13.4, allocations: 148.1 kB / 4.547 GB, free: 25.8 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005351/13.4, allocations: 1.387 MB / 4.548 GB, free: 25.7 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/13.4, allocations: 93.98 kB / 4.548 GB, free: 25.66 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006069/13.41, allocations: 1.753 MB / 4.55 GB, free: 25.51 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/13.41, allocations: 15.33 kB / 4.55 GB, free: 25.51 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/13.41, allocations: 0 / 4.55 GB, free: 25.51 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/13.41, allocations: 7.078 kB / 4.55 GB, free: 25.51 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/13.42, allocations: 3.73 MB / 4.554 GB, free: 24.71 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/13.42, allocations: 7.734 kB / 4.554 GB, free: 24.71 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/13.42, allocations: 176.5 kB / 4.554 GB, free: 24.7 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/13.43, allocations: 304.9 kB / 4.554 GB, free: 24.69 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001203/13.43, allocations: 26.81 kB / 4.554 GB, free: 24.69 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/13.43, allocations: 0.82 MB / 4.555 GB, free: 24.16 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/13.43, allocations: 2.344 kB / 4.555 GB, free: 24.16 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006527/13.43, allocations: 2.425 MB / 4.557 GB, free: 23.63 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/13.44, allocations: 331.5 kB / 4.558 GB, free: 23.41 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002387/13.44, allocations: 9.875 kB / 4.558 GB, free: 23.41 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/13.44, allocations: 58.06 kB / 4.558 GB, free: 23.41 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/13.44, allocations: 81.75 kB / 4.558 GB, free: 23.4 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/13.44, allocations: 56.28 kB / 4.558 GB, free: 23.39 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0007623/13.44, allocations: 425.2 kB / 4.558 GB, free: 23.19 MB / 443.1 MB Notification: Performance of sort global known variables: time 4.31e-07/13.44, allocations: 0 / 4.558 GB, free: 23.19 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.005935/13.44, allocations: 1.262 MB / 4.56 GB, free: 22.87 MB / 443.1 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.01372/13.46, allocations: 5.914 MB / 4.565 GB, free: 19.92 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.005698/13.46, allocations: 2.347 MB / 4.568 GB, free: 18.91 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/13.46, allocations: 8.016 kB / 4.568 GB, free: 18.91 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/13.47, allocations: 0.6359 MB / 4.568 GB, free: 18.7 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003594/13.47, allocations: 384.9 kB / 4.569 GB, free: 18.63 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/13.48, allocations: 2.621 MB / 4.571 GB, free: 17.48 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007696/13.48, allocations: 1.137 MB / 4.572 GB, free: 16.73 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/13.48, allocations: 421.2 kB / 4.573 GB, free: 16.46 MB / 443.1 MB Notification: Performance of SimCode: time 1.192e-06/13.48, allocations: 0 / 4.573 GB, free: 16.46 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.588/17.07, allocations: 40.16 MB / 4.612 GB, free: 2.547 MB / 459.1 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