Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|conVolFlo.y|conMasVolFra.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction") translateModel(Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|conVolFlo.y|conMasVolFra.V",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.445/1.445, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 177.5 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008779/0.000878, allocations: 99.83 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003534, allocations: 12.5 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2111, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.913/5.125, allocations: 2.252 GB / 3.152 GB, free: 327.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003546/5.125, allocations: 99.45 kB / 3.152 GB, free: 327.1 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 1.776/6.901, allocations: 0.6118 GB / 3.764 GB, free: 47.86 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.874e-06/6.901, allocations: 0 / 3.764 GB, free: 47.86 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001843/6.901, allocations: 43.92 kB / 3.764 GB, free: 47.82 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 255 * Number of variables: 255 Notification: Performance of Generate backend data structure: time 0.005171/6.906, allocations: 1.639 MB / 3.765 GB, free: 46.13 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/6.906, allocations: 16.02 kB / 3.765 GB, free: 46.11 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/6.908, allocations: 318 kB / 3.765 GB, free: 45.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003926/6.912, allocations: 1.203 MB / 3.767 GB, free: 44.55 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/6.912, allocations: 78.02 kB / 3.767 GB, free: 44.47 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004139/6.913, allocations: 108 kB / 3.767 GB, free: 44.37 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/6.916, allocations: 1.151 MB / 3.768 GB, free: 43.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/6.916, allocations: 11.86 kB / 3.768 GB, free: 43.14 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/6.916, allocations: 40 kB / 3.768 GB, free: 43.11 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.405e-05/6.916, allocations: 38 kB / 3.768 GB, free: 43.07 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/6.918, allocations: 0.9368 MB / 3.769 GB, free: 42.13 MB / 0.8855 GB 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.00623/6.924, allocations: 4.519 MB / 3.773 GB, free: 37.25 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/6.925, allocations: 0.7189 MB / 3.774 GB, free: 36.51 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005003/6.926, allocations: 312 kB / 3.774 GB, free: 36.15 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/6.926, allocations: 43.22 kB / 3.774 GB, free: 36.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=71): time 3.557e-06/6.926, allocations: 0 / 3.774 GB, free: 36.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=71): time 0.001992/6.928, allocations: 1.001 MB / 3.775 GB, free: 35.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/6.928, allocations: 111.5 kB / 3.775 GB, free: 34.96 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009966/6.929, allocations: 0.6844 MB / 3.776 GB, free: 34.27 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001047/6.929, allocations: 45.7 kB / 3.776 GB, free: 34.22 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003273/6.929, allocations: 0.5229 MB / 3.777 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/6.929, allocations: 260.2 kB / 3.777 GB, free: 33.43 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/6.929, allocations: 12 kB / 3.777 GB, free: 33.42 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.876e-05/6.93, allocations: 337.9 kB / 3.777 GB, free: 33.09 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/6.93, allocations: 285.8 kB / 3.778 GB, free: 32.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005492/6.931, allocations: 0.5072 MB / 3.778 GB, free: 32.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/6.931, allocations: 374.9 kB / 3.778 GB, free: 31.84 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/6.931, allocations: 7.953 kB / 3.778 GB, free: 31.84 MB / 0.8855 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001373/6.932, allocations: 0.8902 MB / 3.779 GB, free: 30.94 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003261/6.933, allocations: 1.578 MB / 3.781 GB, free: 29.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/6.933, allocations: 4 kB / 3.781 GB, free: 29.23 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/6.933, allocations: 8 kB / 3.781 GB, free: 29.22 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008685/6.934, allocations: 187.6 kB / 3.781 GB, free: 29.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003387/6.934, allocations: 0.6016 MB / 3.782 GB, free: 28.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/6.935, allocations: 135.2 kB / 3.782 GB, free: 28.28 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/6.935, allocations: 35.98 kB / 3.782 GB, free: 28.25 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/6.935, allocations: 8 kB / 3.782 GB, free: 28.24 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001096/6.937, allocations: 0.7806 MB / 3.783 GB, free: 27.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/6.937, allocations: 4 kB / 3.783 GB, free: 27.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/6.937, allocations: 8 kB / 3.783 GB, free: 27.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/6.937, allocations: 171.8 kB / 3.783 GB, free: 27.28 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/6.937, allocations: 11.94 kB / 3.783 GB, free: 27.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/6.938, allocations: 131.4 kB / 3.783 GB, free: 27.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.538e-05/6.938, allocations: 32 kB / 3.783 GB, free: 27.11 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 1 (limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 96 * 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.0007833/6.939, allocations: 420.7 kB / 3.783 GB, free: 26.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/6.94, allocations: 98.78 kB / 3.783 GB, free: 26.59 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/6.941, allocations: 0.7962 MB / 3.784 GB, free: 25.78 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/6.941, allocations: 8 kB / 3.784 GB, free: 25.77 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/6.941, allocations: 0 / 3.784 GB, free: 25.77 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009085/6.942, allocations: 0.8814 MB / 3.785 GB, free: 24.82 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/6.946, allocations: 2.118 MB / 3.787 GB, free: 22.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/6.946, allocations: 8.062 kB / 3.787 GB, free: 22.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008039/6.947, allocations: 163.8 kB / 3.787 GB, free: 22.44 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/6.947, allocations: 4 kB / 3.787 GB, free: 22.43 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/6.947, allocations: 23.98 kB / 3.787 GB, free: 22.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002323/6.947, allocations: 0.5976 MB / 3.788 GB, free: 21.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/6.947, allocations: 8.031 kB / 3.788 GB, free: 21.78 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/6.949, allocations: 1.403 MB / 3.789 GB, free: 20.28 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006196/6.949, allocations: 255.7 kB / 3.79 GB, free: 20.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/6.949, allocations: 27.92 kB / 3.79 GB, free: 19.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008948/6.95, allocations: 83.78 kB / 3.79 GB, free: 19.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.404e-05/6.95, allocations: 48.45 kB / 3.79 GB, free: 19.85 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.082e-05/6.951, allocations: 27.98 kB / 3.79 GB, free: 19.82 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0007924/6.951, allocations: 0.538 MB / 3.79 GB, free: 19.29 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.11e-07/6.951, allocations: 0 / 3.79 GB, free: 19.29 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002581/6.954, allocations: 0.7524 MB / 3.791 GB, free: 18.54 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 8 (limPID.I.y,vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],senVolFlo.d,senTraSubPeo.C,senTraSubFre.C) * 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 (71): * Single equations (assignments): 70 * 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.003076/6.957, allocations: 1.858 MB / 3.793 GB, free: 16.61 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002179/6.959, allocations: 1.141 MB / 3.794 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/6.959, allocations: 7.938 kB / 3.794 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005296/6.96, allocations: 368.6 kB / 3.794 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002364/6.962, allocations: 485.4 kB / 3.795 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/6.966, allocations: 2.835 MB / 3.797 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008064/6.967, allocations: 1.198 MB / 3.799 GB, free: 10.51 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001344/6.969, allocations: 343.8 kB / 3.799 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/6.969, allocations: 83.42 kB / 3.799 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of SimCode: time 1.042e-06/6.969, allocations: 0 / 3.799 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of Templates: time 0.606/7.575, allocations: 38.21 MB / 3.836 GB, free: 173.1 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Conversions_Examples_To_VolumeFraction.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Conversions.Examples.To_VolumeFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches