Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.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.Utilities.Math.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inverseXRegularized.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.602/1.602, allocations: 249.3 MB / 261.9 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 172.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.0008948/0.0008946, allocations: 88.16 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.433e-05, allocations: 11.98 kB / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2027, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7951/0.9978, allocations: 132.8 MB / 1.021 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.9982, allocations: 78.83 kB / 1.022 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01368/1.012, allocations: 3.775 MB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.584e-06/1.012, allocations: 0 / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 9.307e-06/1.012, allocations: 4 kB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004837/1.012, allocations: 382.2 kB / 1.026 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/1.013, allocations: 15.97 kB / 1.026 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003897/1.013, allocations: 63.92 kB / 1.026 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/1.013, allocations: 167 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/1.013, allocations: 4 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/1.013, allocations: 3.688 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/1.013, allocations: 49.23 kB / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/1.013, allocations: 0 / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/1.013, allocations: 0 / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-06/1.013, allocations: 0 / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.442e-05/1.013, allocations: 28.12 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/1.014, allocations: 298 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/1.014, allocations: 44.58 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.75e-05/1.014, allocations: 16.55 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/1.014, allocations: 0 / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.661e-05/1.014, allocations: 30.56 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/1.014, allocations: 0 / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2): time 0.0002166/1.015, allocations: 59.94 kB / 1.026 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/1.015, allocations: 55.44 kB / 1.026 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.822e-05/1.015, allocations: 104.8 kB / 1.027 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/1.015, allocations: 25.7 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/1.015, allocations: 80.14 kB / 1.027 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/1.015, allocations: 7.844 kB / 1.027 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/1.015, allocations: 0 / 1.027 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001268/1.015, allocations: 317.8 kB / 1.027 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.101e-05/1.015, allocations: 7.438 kB / 1.027 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.796e-05/1.015, allocations: 18.44 kB / 1.027 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/1.015, allocations: 11.36 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.015, allocations: 0 / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000107/1.015, allocations: 53.06 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/1.015, allocations: 8 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/1.015, allocations: 0 / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/1.015, allocations: 7.922 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/1.015, allocations: 28.08 kB / 1.027 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/1.015, allocations: 0 / 1.027 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/1.016, allocations: 23.97 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/1.016, allocations: 3.953 kB / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.539e-05/1.016, allocations: 108.2 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.741e-05/1.016, allocations: 7.906 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/1.016, allocations: 11.06 kB / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/1.016, allocations: 0 / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.016, allocations: 256 / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/1.016, allocations: 3.938 kB / 1.027 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/1.016, allocations: 172.6 kB / 1.027 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/1.016, allocations: 0 / 1.027 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/1.016, allocations: 31.97 kB / 1.027 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/1.016, allocations: 3.938 kB / 1.027 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/1.016, allocations: 7.859 kB / 1.027 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/1.016, allocations: 4 kB / 1.027 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/1.016, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/1.016, allocations: 154.4 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/1.016, allocations: 80.8 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/1.016, allocations: 0 / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/1.017, allocations: 19.98 kB / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/1.017, allocations: 7.984 kB / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/1.017, allocations: 0 / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.143e-05/1.017, allocations: 83.31 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.017, allocations: 0 / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002321/1.017, allocations: 19.31 kB / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001998/1.017, allocations: 111.2 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001163/1.017, allocations: 29.75 kB / 1.028 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.017, allocations: 0 / 1.028 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.163e-05/1.017, allocations: 15.44 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/1.018, allocations: 15.44 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004206/1.018, allocations: 100.1 kB / 1.028 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/1.018, allocations: 0.677 MB / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.629e-05/1.018, allocations: 12 kB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.555e-05/1.018, allocations: 11.44 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of SimCode: time 7.11e-07/1.018, allocations: 0 / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of Templates: time 0.002918/1.021, allocations: 0.7211 MB / 1.029 GB, free: 10.12 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_InverseXRegularized.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches