Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.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.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.318/1.318, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001201/0.001201, allocations: 190.7 kB / 326.5 MB, free: 2.223 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.816/1.816, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0008954/0.0008947, allocations: 97.47 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003214/0.0003214, allocations: 11.94 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.225, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.397, allocations: 131.7 MB / 1.029 GB, free: 12.06 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.3973, allocations: 71.95 kB / 1.029 GB, free: 11.99 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003335/0.4007, allocations: 1.086 MB / 1.03 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 5.19e-06/0.4007, allocations: 4 kB / 1.03 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.4007, allocations: 3.938 kB / 1.03 GB, free: 10.89 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.00053/0.4012, allocations: 383.1 kB / 1.03 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4013, allocations: 8.031 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.4013, allocations: 7.906 kB / 1.03 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.4015, allocations: 182.8 kB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.4015, allocations: 4 kB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.4015, allocations: 0 / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.4019, allocations: 85.64 kB / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.4019, allocations: 0 / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.4019, allocations: 8 kB / 1.03 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.4019, allocations: 0 / 1.03 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.4023, allocations: 95.91 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.4029, allocations: 332.8 kB / 1.031 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.4032, allocations: 78.53 kB / 1.031 GB, free: 9.578 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/0.4034, allocations: 105.2 kB / 1.031 GB, free: 9.457 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.4034, allocations: 34.56 kB / 1.031 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.4035, allocations: 0 / 1.031 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0006171/0.4041, allocations: 189.4 kB / 1.031 GB, free: 9.223 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.4041, allocations: 55.41 kB / 1.031 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.4042, allocations: 115.2 kB / 1.031 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.4043, allocations: 25.7 kB / 1.031 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.035e-05/0.4044, allocations: 96.12 kB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.4044, allocations: 7.844 kB / 1.032 GB, free: 8.902 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.4044, allocations: 0 / 1.032 GB, free: 8.902 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4046, allocations: 326.8 kB / 1.032 GB, free: 8.574 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.4047, allocations: 43.97 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.4049, allocations: 51.95 kB / 1.032 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.405, allocations: 51.95 kB / 1.032 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.405, allocations: 0 / 1.032 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000341/0.4054, allocations: 141.7 kB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.4054, allocations: 4 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4054, allocations: 3.938 kB / 1.032 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.4055, allocations: 4.031 kB / 1.032 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.4056, allocations: 27.97 kB / 1.032 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4056, allocations: 3.984 kB / 1.032 GB, free: 8.242 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.605e-05/0.4057, allocations: 19.92 kB / 1.032 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.4057, allocations: 4 kB / 1.032 GB, free: 8.219 MB / 0.6823 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 0.0001021/0.4058, allocations: 121.8 kB / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.4059, allocations: 3.906 kB / 1.032 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004011/0.4063, allocations: 153.5 kB / 1.032 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4063, allocations: 0 / 1.032 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.4063, allocations: 0 / 1.032 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4063, allocations: 3.938 kB / 1.032 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.4065, allocations: 181.6 kB / 1.033 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4065, allocations: 0 / 1.033 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.4066, allocations: 23.97 kB / 1.033 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4066, allocations: 0 / 1.033 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.4067, allocations: 8 kB / 1.033 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.4067, allocations: 4 kB / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4067, allocations: 0 / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003794/0.4071, allocations: 231.3 kB / 1.033 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.4071, allocations: 77.11 kB / 1.033 GB, free: 7.328 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.4071, allocations: 11.98 kB / 1.033 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.4073, allocations: 19.98 kB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.4073, allocations: 0 / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.4073, allocations: 4 kB / 1.033 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.28e-05/0.4074, allocations: 103.2 kB / 1.033 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.312e-06/0.4074, allocations: 0 / 1.033 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002063/0.4076, allocations: 15.94 kB / 1.033 GB, free: 7.176 MB / 0.6823 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001614/0.4078, allocations: 103.2 kB / 1.033 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003581/0.4081, allocations: 95.92 kB / 1.033 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4081, allocations: 0 / 1.033 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.4083, allocations: 59.95 kB / 1.033 GB, free: 6.91 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.4085, allocations: 9.672 kB / 1.033 GB, free: 6.902 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003441/0.4088, allocations: 168.5 kB / 1.034 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.4091, allocations: 0.6926 MB / 1.034 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.397e-05/0.4092, allocations: 7.859 kB / 1.034 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.389e-05/0.4092, allocations: 7.438 kB / 1.034 GB, free: 5.977 MB / 0.6823 GB Notification: Performance of SimCode: time 2e-07/0.4092, allocations: 0 / 1.034 GB, free: 5.977 MB / 0.6823 GB Notification: Performance of Templates: time 0.002563/0.4118, allocations: 0.6538 MB / 1.035 GB, free: 5.332 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches