Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.616/1.616, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 99.81 kB / 286.7 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.339e-05/2.345e-05, allocations: 4 kB / 343.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 51.47 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.16/10.28, allocations: 3.545 GB / 3.931 GB, free: 122.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/10.28, allocations: 83.88 kB / 3.931 GB, free: 122.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214/12.49, allocations: 0.5233 GB / 4.454 GB, free: 1.281 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.435e-06/12.49, allocations: 7.875 kB / 4.454 GB, free: 1.273 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000148/12.49, allocations: 28 kB / 4.454 GB, free: 1.246 MB / 474.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.5153/13.01, allocations: 2.89 MB / 4.457 GB, free: 41.9 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/13.01, allocations: 9.906 kB / 4.457 GB, free: 41.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009352/13.01, allocations: 126.2 kB / 4.457 GB, free: 41.84 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/13.01, allocations: 0.7247 MB / 4.458 GB, free: 41.61 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/13.01, allocations: 103.1 kB / 4.458 GB, free: 41.55 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/13.01, allocations: 55.53 kB / 4.458 GB, free: 41.55 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002275/13.01, allocations: 1.279 MB / 4.459 GB, free: 41.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/13.02, allocations: 1.293 MB / 4.461 GB, free: 41.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/13.02, allocations: 5.344 kB / 4.461 GB, free: 41.32 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/13.02, allocations: 3.359 kB / 4.461 GB, free: 41.32 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/13.02, allocations: 64.27 kB / 4.461 GB, free: 41.32 MB / 474.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.01011/13.03, allocations: 6.348 MB / 4.467 GB, free: 37.87 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/13.03, allocations: 0.8491 MB / 4.468 GB, free: 37.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006436/13.03, allocations: 463.9 kB / 4.468 GB, free: 37.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00107/13.03, allocations: 1.307 MB / 4.47 GB, free: 36.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/13.03, allocations: 48.39 kB / 4.47 GB, free: 36.38 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007245/13.03, allocations: 77.09 kB / 4.47 GB, free: 36.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=78): time 4.368e-06/13.03, allocations: 0 / 4.47 GB, free: 36.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=90): time 0.01483/13.05, allocations: 4.103 MB / 4.474 GB, free: 35.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/13.05, allocations: 111.9 kB / 4.474 GB, free: 35.78 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008194/13.05, allocations: 0.5419 MB / 4.474 GB, free: 35.65 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/13.05, allocations: 32.7 kB / 4.474 GB, free: 35.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003285/13.05, allocations: 475.4 kB / 4.475 GB, free: 35.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002746/13.05, allocations: 315.5 kB / 4.475 GB, free: 35.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/13.05, allocations: 1.688 kB / 4.475 GB, free: 35.24 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/13.05, allocations: 390.2 kB / 4.475 GB, free: 34.93 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008187/13.05, allocations: 0.5307 MB / 4.476 GB, free: 34.93 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009348/13.05, allocations: 0.8657 MB / 4.477 GB, free: 34.54 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003233/13.05, allocations: 1.025 MB / 4.478 GB, free: 34.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/13.05, allocations: 4.594 kB / 4.478 GB, free: 34.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004893/13.06, allocations: 1.959 MB / 4.48 GB, free: 34.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0013/13.06, allocations: 3.982 MB / 4.484 GB, free: 30.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-05/13.06, allocations: 9.375 kB / 4.484 GB, free: 30.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/13.06, allocations: 247 kB / 4.484 GB, free: 30.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/13.06, allocations: 268.4 kB / 4.484 GB, free: 30.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009883/13.06, allocations: 0.8377 MB / 4.485 GB, free: 29.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/13.06, allocations: 91.98 kB / 4.485 GB, free: 29.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/13.06, allocations: 72.83 kB / 4.485 GB, free: 29.74 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/13.06, allocations: 3.375 kB / 4.485 GB, free: 29.74 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005147/13.07, allocations: 1.816 MB / 4.487 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.922e-05/13.07, allocations: 15.25 kB / 4.487 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/13.07, allocations: 245 kB / 4.487 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/13.07, allocations: 270.8 kB / 4.487 GB, free: 29.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008684/13.07, allocations: 0.8367 MB / 4.488 GB, free: 29.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/13.07, allocations: 79.7 kB / 4.488 GB, free: 29.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/13.07, allocations: 72.62 kB / 4.488 GB, free: 29.17 MB / 474.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.0004813/13.07, allocations: 144 kB / 4.488 GB, free: 29.06 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003928/13.08, allocations: 1.348 MB / 4.49 GB, free: 28.96 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003573/13.08, allocations: 83.62 kB / 4.49 GB, free: 28.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004122/13.08, allocations: 1.75 MB / 4.492 GB, free: 28.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/13.08, allocations: 9.406 kB / 4.492 GB, free: 28.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/13.08, allocations: 0 / 4.492 GB, free: 28.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/13.08, allocations: 9.453 kB / 4.492 GB, free: 28.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008631/13.09, allocations: 3.689 MB / 4.495 GB, free: 28.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/13.09, allocations: 1.594 kB / 4.495 GB, free: 28.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008405/13.09, allocations: 173.2 kB / 4.495 GB, free: 28.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/13.09, allocations: 314.7 kB / 4.496 GB, free: 28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/13.09, allocations: 25.08 kB / 4.496 GB, free: 28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007762/13.09, allocations: 0.8164 MB / 4.497 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/13.09, allocations: 3.875 kB / 4.497 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005427/13.1, allocations: 2.386 MB / 4.499 GB, free: 26.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/13.1, allocations: 321.9 kB / 4.499 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003858/13.1, allocations: 11.28 kB / 4.499 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/13.1, allocations: 68.64 kB / 4.499 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/13.1, allocations: 69.69 kB / 4.499 GB, free: 26.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/13.1, allocations: 55.69 kB / 4.499 GB, free: 26.81 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001111/13.1, allocations: 424.8 kB / 4.5 GB, free: 26.72 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.61e-07/13.1, allocations: 1.281 kB / 4.5 GB, free: 26.72 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007725/13.11, allocations: 1.233 MB / 4.501 GB, free: 26.72 MB / 474.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.01427/13.13, allocations: 5.741 MB / 4.507 GB, free: 24.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006725/13.13, allocations: 2.354 MB / 4.509 GB, free: 24.49 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.938e-05/13.13, allocations: 2.312 kB / 4.509 GB, free: 24.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/13.14, allocations: 0.6425 MB / 4.509 GB, free: 24.48 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/13.14, allocations: 397.5 kB / 4.51 GB, free: 24.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/13.15, allocations: 2.547 MB / 4.512 GB, free: 24.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/13.15, allocations: 1.141 MB / 4.513 GB, free: 23.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003656/13.16, allocations: 0.6487 MB / 4.514 GB, free: 23.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000918/13.16, allocations: 390.7 kB / 4.514 GB, free: 23.38 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/13.16, allocations: 0 / 4.514 GB, free: 23.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1082/13.26, allocations: 49.27 MB / 4.563 GB, free: 21.47 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/13.27, allocations: 163.7 kB / 4.563 GB, free: 21.28 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.251/17.52, allocations: 4 kB / 4.563 GB, free: 21.27 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat