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.001512/0.001517, allocations: 184.4 kB / 16.41 MB, free: 5.703 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.015/2.015, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001166/0.001166, allocations: 88.64 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3381, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.55/10.89, allocations: 3.612 GB / 3.978 GB, free: 7.398 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/10.89, allocations: 91.08 kB / 3.978 GB, free: 7.352 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416/14.31, allocations: 0.5526 GB / 4.53 GB, free: 39.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.615e-06/14.31, allocations: 3.5 kB / 4.53 GB, free: 39.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.163e-05/14.31, allocations: 25.66 kB / 4.531 GB, free: 39.59 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.01284/14.32, allocations: 3.085 MB / 4.534 GB, free: 38.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/14.32, allocations: 11.5 kB / 4.534 GB, free: 38.11 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006222/14.32, allocations: 154.7 kB / 4.534 GB, free: 38.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006944/14.32, allocations: 126.5 kB / 4.534 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/14.32, allocations: 0.7255 MB / 4.535 GB, free: 37.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/14.32, allocations: 131.6 kB / 4.535 GB, free: 37.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002877/14.32, allocations: 94.94 kB / 4.535 GB, free: 37.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003598/14.33, allocations: 1.444 MB / 4.536 GB, free: 37.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.103e-05/14.33, allocations: 5.125 kB / 4.536 GB, free: 37.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001995/14.33, allocations: 38.83 kB / 4.536 GB, free: 37.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001226/14.33, allocations: 71.3 kB / 4.536 GB, free: 37.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003737/14.33, allocations: 1.445 MB / 4.538 GB, free: 37.43 MB / 442.7 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.0138/14.34, allocations: 6.056 MB / 4.544 GB, free: 34.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003115/14.35, allocations: 0.9671 MB / 4.545 GB, free: 34.42 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001859/14.35, allocations: 1.749 MB / 4.546 GB, free: 32.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.367e-05/14.35, allocations: 47.3 kB / 4.546 GB, free: 32.5 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001119/14.35, allocations: 103.8 kB / 4.546 GB, free: 32.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 6.873e-06/14.35, allocations: 5.406 kB / 4.546 GB, free: 32.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.03211/14.38, allocations: 5.145 MB / 4.551 GB, free: 31.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/14.38, allocations: 118.9 kB / 4.552 GB, free: 31.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/14.38, allocations: 0.6816 MB / 4.552 GB, free: 31.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003869/14.38, allocations: 50.45 kB / 4.552 GB, free: 31.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/14.38, allocations: 473.9 kB / 4.553 GB, free: 31.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004621/14.39, allocations: 351.3 kB / 4.553 GB, free: 31.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/14.39, allocations: 25.69 kB / 4.553 GB, free: 31.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/14.39, allocations: 359.3 kB / 4.553 GB, free: 30.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/14.39, allocations: 0.6003 MB / 4.554 GB, free: 30.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/14.39, allocations: 0.9492 MB / 4.555 GB, free: 30.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002531/14.39, allocations: 0.7851 MB / 4.556 GB, free: 30.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.682e-05/14.39, allocations: 5.719 kB / 4.556 GB, free: 30.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006879/14.4, allocations: 1.866 MB / 4.557 GB, free: 30.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009362/14.4, allocations: 3.973 MB / 4.561 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/14.4, allocations: 10.41 kB / 4.561 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002966/14.4, allocations: 331.4 kB / 4.562 GB, free: 26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/14.41, allocations: 272.2 kB / 4.562 GB, free: 25.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/14.41, allocations: 0.9303 MB / 4.563 GB, free: 25.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002303/14.41, allocations: 107.5 kB / 4.563 GB, free: 25.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/14.41, allocations: 84.61 kB / 4.563 GB, free: 25.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/14.41, allocations: 2.781 kB / 4.563 GB, free: 25.46 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006011/14.42, allocations: 1.804 MB / 4.565 GB, free: 25.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.102e-05/14.42, allocations: 9.75 kB / 4.565 GB, free: 25.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002708/14.42, allocations: 332.5 kB / 4.565 GB, free: 25.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002287/14.42, allocations: 274.1 kB / 4.565 GB, free: 25.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/14.42, allocations: 0.922 MB / 4.566 GB, free: 24.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/14.43, allocations: 108.8 kB / 4.566 GB, free: 24.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002088/14.43, allocations: 80.73 kB / 4.566 GB, free: 24.75 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 () * Number of clocked 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.0009998/14.43, allocations: 425.4 kB / 4.567 GB, free: 24.53 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003444/14.43, allocations: 96.56 kB / 4.567 GB, free: 24.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006261/14.43, allocations: 1.926 MB / 4.569 GB, free: 24.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/14.43, allocations: 13.81 kB / 4.569 GB, free: 24.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/14.43, allocations: 3.906 kB / 4.569 GB, free: 24.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/14.43, allocations: 9.75 kB / 4.569 GB, free: 24.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008083/14.44, allocations: 3.002 MB / 4.572 GB, free: 23.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/14.44, allocations: 0 / 4.572 GB, free: 23.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/14.44, allocations: 189.4 kB / 4.572 GB, free: 23.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003409/14.45, allocations: 395.9 kB / 4.572 GB, free: 23.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002678/14.45, allocations: 43.3 kB / 4.572 GB, free: 23.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002127/14.45, allocations: 0.8899 MB / 4.573 GB, free: 23.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/14.45, allocations: 3.375 kB / 4.573 GB, free: 23.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006928/14.46, allocations: 2.446 MB / 4.576 GB, free: 23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009643/14.46, allocations: 346.2 kB / 4.576 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/14.46, allocations: 28.08 kB / 4.576 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/14.46, allocations: 79 kB / 4.576 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/14.46, allocations: 72.81 kB / 4.576 GB, free: 22.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000186/14.46, allocations: 64.67 kB / 4.576 GB, free: 22.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001041/14.46, allocations: 0.5423 MB / 4.577 GB, free: 22.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.1e-07/14.46, allocations: 0 / 4.577 GB, free: 22.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005761/14.47, allocations: 1.347 MB / 4.578 GB, free: 22.51 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 () * 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 (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.01323/14.48, allocations: 5.362 MB / 4.583 GB, free: 20.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007851/14.49, allocations: 2.614 MB / 4.586 GB, free: 20.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/14.49, allocations: 3.781 kB / 4.586 GB, free: 20.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002287/14.49, allocations: 0.7275 MB / 4.587 GB, free: 20.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/14.5, allocations: 0.4937 MB / 4.587 GB, free: 20.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/14.51, allocations: 10.89 MB / 4.598 GB, free: 27.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009077/14.51, allocations: 1.141 MB / 4.599 GB, free: 26.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/14.51, allocations: 434.5 kB / 4.599 GB, free: 26.01 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/14.51, allocations: 0 / 4.599 GB, free: 26.01 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.85/18.36, allocations: 41.21 MB / 4.639 GB, free: 4.379 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