Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009106/0.0009104, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008881/0.0008881, allocations: 90 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.719e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1261, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.07/10.2, allocations: 3.552 GB / 3.93 GB, free: 119.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/10.2, allocations: 84.66 kB / 3.93 GB, free: 119.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464/12.66, allocations: 0.5299 GB / 4.46 GB, free: 41.08 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.094e-06/12.66, allocations: 5.75 kB / 4.46 GB, free: 41.08 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.221e-05/12.66, allocations: 24.47 kB / 4.46 GB, free: 41.08 MB / 458.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.01164/12.68, allocations: 2.866 MB / 4.463 GB, free: 39.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/12.68, allocations: 13.67 kB / 4.463 GB, free: 39.78 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006273/12.68, allocations: 128.2 kB / 4.463 GB, free: 39.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/12.68, allocations: 0.7263 MB / 4.464 GB, free: 39.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/12.68, allocations: 98.89 kB / 4.464 GB, free: 39.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/12.68, allocations: 61.8 kB / 4.464 GB, free: 39.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002025/12.68, allocations: 1.278 MB / 4.465 GB, free: 39.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/12.68, allocations: 1.297 MB / 4.467 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/12.68, allocations: 8.906 kB / 4.467 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/12.68, allocations: 3.969 kB / 4.467 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.673e-05/12.68, allocations: 66.94 kB / 4.467 GB, free: 39.18 MB / 458.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.008244/12.69, allocations: 6.342 MB / 4.473 GB, free: 35.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/12.69, allocations: 0.855 MB / 4.474 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005602/12.69, allocations: 466.6 kB / 4.474 GB, free: 35.67 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/12.69, allocations: 1.304 MB / 4.475 GB, free: 34.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/12.69, allocations: 50.36 kB / 4.475 GB, free: 34.23 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005746/12.69, allocations: 75.8 kB / 4.475 GB, free: 34.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 4.298e-06/12.69, allocations: 0 / 4.475 GB, free: 34.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01431/12.71, allocations: 4.096 MB / 4.479 GB, free: 33.71 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/12.71, allocations: 119.9 kB / 4.48 GB, free: 33.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000767/12.71, allocations: 0.5457 MB / 4.48 GB, free: 33.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/12.71, allocations: 29.61 kB / 4.48 GB, free: 33.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/12.71, allocations: 482.1 kB / 4.481 GB, free: 33.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/12.71, allocations: 312.5 kB / 4.481 GB, free: 32.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/12.71, allocations: 0 / 4.481 GB, free: 32.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/12.71, allocations: 392.2 kB / 4.481 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/12.71, allocations: 0.5284 MB / 4.482 GB, free: 32.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008673/12.71, allocations: 0.8612 MB / 4.483 GB, free: 32.26 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002558/12.71, allocations: 0.9739 MB / 4.484 GB, free: 32.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/12.71, allocations: 3.062 kB / 4.484 GB, free: 32.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004098/12.72, allocations: 1.913 MB / 4.485 GB, free: 32.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001011/12.72, allocations: 3.977 MB / 4.489 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/12.72, allocations: 10.22 kB / 4.489 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009834/12.72, allocations: 240.9 kB / 4.49 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/12.72, allocations: 270 kB / 4.49 GB, free: 27.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008679/12.72, allocations: 0.8452 MB / 4.491 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/12.72, allocations: 81.86 kB / 4.491 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/12.72, allocations: 71.14 kB / 4.491 GB, free: 27.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/12.72, allocations: 8.562 kB / 4.491 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004155/12.73, allocations: 1.763 MB / 4.493 GB, free: 27.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.202e-05/12.73, allocations: 14.09 kB / 4.493 GB, free: 27.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009054/12.73, allocations: 233.4 kB / 4.493 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/12.73, allocations: 271.6 kB / 4.493 GB, free: 27.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008516/12.73, allocations: 0.8354 MB / 4.494 GB, free: 26.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/12.73, allocations: 84.83 kB / 4.494 GB, free: 26.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/12.73, allocations: 75.83 kB / 4.494 GB, free: 26.88 MB / 458.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.0004364/12.73, allocations: 155 kB / 4.494 GB, free: 26.76 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003618/12.74, allocations: 1.346 MB / 4.495 GB, free: 26.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/12.74, allocations: 86.5 kB / 4.496 GB, free: 26.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/12.74, allocations: 1.756 MB / 4.497 GB, free: 26.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/12.74, allocations: 9.891 kB / 4.497 GB, free: 26.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/12.74, allocations: 5.531 kB / 4.497 GB, free: 26.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/12.74, allocations: 3.094 kB / 4.497 GB, free: 26.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008674/12.75, allocations: 3.687 MB / 4.501 GB, free: 25.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/12.75, allocations: 6.406 kB / 4.501 GB, free: 25.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008058/12.75, allocations: 180.1 kB / 4.501 GB, free: 25.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/12.75, allocations: 309.5 kB / 4.501 GB, free: 25.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/12.75, allocations: 34.81 kB / 4.501 GB, free: 25.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007933/12.75, allocations: 0.8041 MB / 4.502 GB, free: 25.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/12.75, allocations: 3.719 kB / 4.502 GB, free: 25.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/12.76, allocations: 2.385 MB / 4.505 GB, free: 24.63 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/12.76, allocations: 324 kB / 4.505 GB, free: 24.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004053/12.76, allocations: 16.66 kB / 4.505 GB, free: 24.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/12.76, allocations: 63.72 kB / 4.505 GB, free: 24.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/12.76, allocations: 70.22 kB / 4.505 GB, free: 24.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002075/12.76, allocations: 55.92 kB / 4.505 GB, free: 24.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00083/12.76, allocations: 422.9 kB / 4.505 GB, free: 24.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/12.76, allocations: 0 / 4.505 GB, free: 24.39 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006637/12.77, allocations: 1.215 MB / 4.507 GB, free: 24.18 MB / 458.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.01423/12.78, allocations: 5.722 MB / 4.512 GB, free: 21.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006087/12.79, allocations: 2.349 MB / 4.514 GB, free: 21.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.992e-05/12.79, allocations: 5.594 kB / 4.515 GB, free: 21.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/12.79, allocations: 0.6313 MB / 4.515 GB, free: 21.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003063/12.79, allocations: 388.4 kB / 4.515 GB, free: 21.69 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/12.8, allocations: 2.526 MB / 4.518 GB, free: 21.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/12.81, allocations: 1.142 MB / 4.519 GB, free: 20.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003627/12.81, allocations: 0.6559 MB / 4.52 GB, free: 20.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00093/12.81, allocations: 380 kB / 4.52 GB, free: 20.29 MB / 458.7 MB Notification: Performance of SimCode: time 2.405e-06/12.81, allocations: 0 / 4.52 GB, free: 20.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1128/12.92, allocations: 49.06 MB / 4.568 GB, free: 11.92 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001616/12.92, allocations: 165.3 kB / 4.568 GB, free: 11.73 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.982/16.91, allocations: 4.031 kB / 4.568 GB, free: 11.72 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat