Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.MassFraction,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_MassFraction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.MassFraction,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_MassFraction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.284/2.284, allocations: 387.4 MB / 394.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 180.8 kB / 487.4 MB, free: 5.016 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009826/0.0009826, allocations: 80 kB / 0.9219 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.194e-05/2.195e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2535, allocations: 142.4 MB / 1.206 GB, free: 43.83 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.563/5.817, allocations: 1.928 GB / 3.134 GB, free: 349.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/5.817, allocations: 94.7 kB / 3.135 GB, free: 349.7 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.856/7.674, allocations: 483.9 MB / 3.607 GB, free: 309.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.004e-06/7.674, allocations: 0 / 3.607 GB, free: 309.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001178/7.674, allocations: 25.12 kB / 3.607 GB, free: 309.1 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.002953/7.677, allocations: 0.9934 MB / 3.608 GB, free: 308.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/7.677, allocations: 9.688 kB / 3.608 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001655/7.678, allocations: 204.6 kB / 3.608 GB, free: 308.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/7.681, allocations: 0.9077 MB / 3.609 GB, free: 308.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/7.681, allocations: 18.12 kB / 3.609 GB, free: 308.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/7.681, allocations: 33.25 kB / 3.609 GB, free: 308.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009196/7.682, allocations: 434.3 kB / 3.61 GB, free: 308.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/7.683, allocations: 0.5167 MB / 3.61 GB, free: 308.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/7.683, allocations: 0 / 3.61 GB, free: 308.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/7.683, allocations: 7 kB / 3.61 GB, free: 308.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.058e-05/7.683, allocations: 15.84 kB / 3.61 GB, free: 308.2 MB / 1.151 GB 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.003251/7.687, allocations: 2.287 MB / 3.612 GB, free: 306.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005269/7.687, allocations: 310.8 kB / 3.613 GB, free: 306.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/7.687, allocations: 201.2 kB / 3.613 GB, free: 306.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005131/7.688, allocations: 302.8 kB / 3.613 GB, free: 306.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/7.688, allocations: 38.25 kB / 3.613 GB, free: 306.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=36): time 2.635e-06/7.688, allocations: 3.281 kB / 3.613 GB, free: 306.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=36): time 0.001108/7.689, allocations: 426.7 kB / 3.614 GB, free: 306.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/7.689, allocations: 55.16 kB / 3.614 GB, free: 306.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004574/7.69, allocations: 353.1 kB / 3.614 GB, free: 306 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/7.69, allocations: 29.67 kB / 3.614 GB, free: 306 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/7.69, allocations: 322.7 kB / 3.614 GB, free: 305.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/7.69, allocations: 124.7 kB / 3.614 GB, free: 305.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-05/7.69, allocations: 3.406 kB / 3.614 GB, free: 305.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.00011/7.69, allocations: 361.4 kB / 3.615 GB, free: 305.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/7.69, allocations: 129.4 kB / 3.615 GB, free: 305.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002665/7.691, allocations: 259.7 kB / 3.615 GB, free: 305.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/7.691, allocations: 208.8 kB / 3.615 GB, free: 305 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/7.691, allocations: 3.938 kB / 3.615 GB, free: 305 MB / 1.151 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008199/7.692, allocations: 463.2 kB / 3.616 GB, free: 304.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000273/7.692, allocations: 0.8802 MB / 3.617 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/7.692, allocations: 3.094 kB / 3.617 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/7.692, allocations: 3.594 kB / 3.617 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005591/7.693, allocations: 98.39 kB / 3.617 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003433/7.693, allocations: 0.6098 MB / 3.617 GB, free: 303.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000689/7.694, allocations: 60.72 kB / 3.617 GB, free: 303.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.364e-05/7.694, allocations: 20.78 kB / 3.617 GB, free: 303.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/7.694, allocations: 6.031 kB / 3.617 GB, free: 303.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006275/7.695, allocations: 376.3 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/7.695, allocations: 0 / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/7.695, allocations: 6.906 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/7.695, allocations: 90.78 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/7.695, allocations: 3.938 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/7.696, allocations: 59.61 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/7.696, allocations: 19.67 kB / 3.618 GB, free: 303.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001755/7.696, allocations: 118.2 kB / 3.618 GB, free: 303.1 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000612/7.696, allocations: 389.9 kB / 3.618 GB, free: 302.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.913e-05/7.697, allocations: 49.41 kB / 3.618 GB, free: 302.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/7.697, allocations: 426 kB / 3.619 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/7.697, allocations: 7.438 kB / 3.619 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/7.697, allocations: 3.953 kB / 3.619 GB, free: 302.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005075/7.698, allocations: 0.6422 MB / 3.62 GB, free: 302.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/7.7, allocations: 1.113 MB / 3.621 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/7.7, allocations: 3.953 kB / 3.621 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/7.7, allocations: 96.95 kB / 3.621 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/7.7, allocations: 3.688 kB / 3.621 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/7.7, allocations: 3.781 kB / 3.621 GB, free: 301.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002493/7.7, allocations: 0.5964 MB / 3.621 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/7.7, allocations: 3.125 kB / 3.621 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00086/7.701, allocations: 0.7636 MB / 3.622 GB, free: 300.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/7.701, allocations: 172 kB / 3.622 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.739e-05/7.702, allocations: 7.562 kB / 3.622 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004884/7.702, allocations: 38.95 kB / 3.622 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/7.702, allocations: 26.5 kB / 3.622 GB, free: 300.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/7.702, allocations: 15.42 kB / 3.622 GB, free: 300.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003077/7.702, allocations: 284.6 kB / 3.623 GB, free: 300.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/7.702, allocations: 0 / 3.623 GB, free: 300.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001513/7.704, allocations: 436.4 kB / 3.623 GB, free: 300 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senMasFra1.X) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00364/7.708, allocations: 3.237 MB / 3.626 GB, free: 298.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001162/7.709, allocations: 0.5564 MB / 3.627 GB, free: 298 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/7.709, allocations: 3.062 kB / 3.627 GB, free: 298 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002776/7.709, allocations: 176.4 kB / 3.627 GB, free: 297.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/7.711, allocations: 296.8 kB / 3.627 GB, free: 297.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/7.713, allocations: 1.206 MB / 3.628 GB, free: 297.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/7.714, allocations: 0.9566 MB / 3.629 GB, free: 296.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0009099/7.715, allocations: 235 kB / 3.629 GB, free: 296.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/7.715, allocations: 213.7 kB / 3.63 GB, free: 296.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.172e-06/7.715, allocations: 0 / 3.63 GB, free: 296.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06279/7.778, allocations: 25.96 MB / 3.655 GB, free: 288.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/7.778, allocations: 169.4 kB / 3.655 GB, free: 288.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.006/10.78, allocations: 0 / 3.655 GB, free: 288.1 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_MassFraction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_MassFraction.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat does not exist to compare? outputFormat=mat