Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.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: translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001083/0.001083, allocations: 180.8 kB / 492.3 MB, free: 0.6484 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.544/1.544, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001253, allocations: 91.89 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.841e-05/3.859e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.766/6.045, allocations: 1.926 GB / 3.138 GB, free: 343.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/6.045, allocations: 90.44 kB / 3.138 GB, free: 343.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 2.273/8.318, allocations: 491.5 MB / 3.618 GB, free: 300.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.442e-06/8.319, allocations: 0 / 3.618 GB, free: 300.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.192e-05/8.319, allocations: 21.62 kB / 3.618 GB, free: 300.7 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002103/8.321, allocations: 1.032 MB / 3.619 GB, free: 299.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/8.321, allocations: 10 kB / 3.619 GB, free: 299.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00196/8.323, allocations: 260.9 kB / 3.619 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/8.324, allocations: 0.6185 MB / 3.62 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/8.324, allocations: 43.97 kB / 3.62 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.044e-05/8.324, allocations: 58.62 kB / 3.62 GB, free: 299.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009275/8.325, allocations: 0.5925 MB / 3.621 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/8.325, allocations: 0 / 3.621 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/8.325, allocations: 26.33 kB / 3.621 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.825e-05/8.325, allocations: 17.88 kB / 3.621 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006883/8.326, allocations: 473.9 kB / 3.621 GB, free: 298.8 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.002695/8.329, allocations: 2.424 MB / 3.623 GB, free: 296.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/8.329, allocations: 329.1 kB / 3.624 GB, free: 296.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/8.329, allocations: 212.6 kB / 3.624 GB, free: 296.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004637/8.33, allocations: 302.1 kB / 3.624 GB, free: 296.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/8.33, allocations: 45.7 kB / 3.624 GB, free: 296.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=39): time 2.205e-06/8.33, allocations: 3.938 kB / 3.624 GB, free: 296.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=39): time 0.0009845/8.331, allocations: 429.7 kB / 3.625 GB, free: 295.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/8.331, allocations: 62.88 kB / 3.625 GB, free: 295.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/8.331, allocations: 433.3 kB / 3.625 GB, free: 295.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/8.331, allocations: 37.02 kB / 3.625 GB, free: 295.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/8.332, allocations: 328.3 kB / 3.626 GB, free: 295.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.861e-05/8.332, allocations: 136.1 kB / 3.626 GB, free: 295.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-05/8.332, allocations: 11.88 kB / 3.626 GB, free: 295.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001051/8.332, allocations: 366.5 kB / 3.626 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/8.332, allocations: 148.7 kB / 3.626 GB, free: 294.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/8.332, allocations: 275 kB / 3.626 GB, free: 294.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/8.333, allocations: 191.7 kB / 3.627 GB, free: 294.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/8.333, allocations: 7.734 kB / 3.627 GB, free: 294.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006655/8.333, allocations: 491.3 kB / 3.627 GB, free: 294.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000238/8.334, allocations: 0.8744 MB / 3.628 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/8.334, allocations: 3.781 kB / 3.628 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/8.334, allocations: 3.781 kB / 3.628 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/8.334, allocations: 114.5 kB / 3.628 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003176/8.334, allocations: 0.5965 MB / 3.629 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006691/8.335, allocations: 86.36 kB / 3.629 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/8.335, allocations: 22.72 kB / 3.629 GB, free: 292.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/8.335, allocations: 8.562 kB / 3.629 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005629/8.336, allocations: 403.7 kB / 3.629 GB, free: 292.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/8.336, allocations: 7.953 kB / 3.629 GB, free: 292.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.612e-06/8.336, allocations: 7.891 kB / 3.629 GB, free: 292.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000376/8.336, allocations: 108.7 kB / 3.629 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/8.336, allocations: 3.281 kB / 3.629 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005506/8.337, allocations: 81.06 kB / 3.629 GB, free: 292.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/8.337, allocations: 28.72 kB / 3.629 GB, free: 292.3 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 (53): * Single equations (assignments): 52 * 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.0001346/8.337, allocations: 127.7 kB / 3.629 GB, free: 292.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/8.337, allocations: 58.94 kB / 3.63 GB, free: 292.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/8.338, allocations: 440.2 kB / 3.63 GB, free: 291.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/8.338, allocations: 6.891 kB / 3.63 GB, free: 291.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/8.338, allocations: 7.219 kB / 3.63 GB, free: 291.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005756/8.338, allocations: 0.6731 MB / 3.631 GB, free: 291.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/8.34, allocations: 1.239 MB / 3.632 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/8.34, allocations: 2.781 kB / 3.632 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/8.341, allocations: 102.7 kB / 3.632 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/8.341, allocations: 2.812 kB / 3.632 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/8.341, allocations: 11.62 kB / 3.632 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002296/8.341, allocations: 0.5945 MB / 3.633 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/8.341, allocations: 3.969 kB / 3.633 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008726/8.342, allocations: 0.8091 MB / 3.633 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/8.342, allocations: 186.1 kB / 3.633 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/8.342, allocations: 14.75 kB / 3.634 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/8.343, allocations: 49.52 kB / 3.634 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/8.343, allocations: 30.64 kB / 3.634 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/8.343, allocations: 19.36 kB / 3.634 GB, free: 289 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003364/8.343, allocations: 342.7 kB / 3.634 GB, free: 288.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.91e-07/8.343, allocations: 0 / 3.634 GB, free: 288.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001503/8.345, allocations: 493 kB / 3.634 GB, free: 288.7 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,senDenFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.002084/8.347, allocations: 1.377 MB / 3.636 GB, free: 288.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001192/8.348, allocations: 0.6312 MB / 3.636 GB, free: 287.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/8.348, allocations: 4.062 kB / 3.636 GB, free: 287.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003168/8.348, allocations: 195.9 kB / 3.637 GB, free: 287.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/8.35, allocations: 346.2 kB / 3.637 GB, free: 287.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/8.352, allocations: 1.106 MB / 3.638 GB, free: 286.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/8.352, allocations: 0.9603 MB / 3.639 GB, free: 286 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008461/8.353, allocations: 252.7 kB / 3.639 GB, free: 285.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/8.353, allocations: 47.5 kB / 3.639 GB, free: 285.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.132e-06/8.353, allocations: 0 / 3.639 GB, free: 285.9 MB / 1.151 GB Notification: Performance of Templates: time 0.04574/8.399, allocations: 32.32 MB / 3.671 GB, free: 258 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches