Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.619/2.619, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001158/0.001158, allocations: 186.3 kB / 0.4902 GB, free: 2.234 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.608/1.608, allocations: 223.2 MB / 0.7992 GB, free: 15.69 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.001164/0.001164, allocations: 102 kB / 0.9396 GB, free: 2.855 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00041/0.00041, allocations: 9.438 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3405, allocations: 143 MB / 1.229 GB, free: 85.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.5321, allocations: 150.1 MB / 1.376 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.5324, allocations: 75.95 kB / 1.376 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.00354/0.536, allocations: 1.09 MB / 1.377 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.563e-06/0.536, allocations: 0 / 1.377 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.536, allocations: 3.938 kB / 1.377 GB, free: 14.05 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005446/0.5366, allocations: 387 kB / 1.377 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.5366, allocations: 8.031 kB / 1.377 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.5367, allocations: 4 kB / 1.377 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.5368, allocations: 178.9 kB / 1.377 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.5369, allocations: 0 / 1.377 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.5369, allocations: 0 / 1.377 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.5372, allocations: 97.58 kB / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.5372, allocations: 0 / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.5372, allocations: 0 / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.5372, allocations: 0 / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003232/0.5376, allocations: 99.91 kB / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006677/0.5382, allocations: 330.9 kB / 1.378 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.5385, allocations: 78.52 kB / 1.378 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002145/0.5387, allocations: 109.1 kB / 1.378 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.5388, allocations: 34.56 kB / 1.378 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.5388, allocations: 0 / 1.378 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0006273/0.5394, allocations: 189.5 kB / 1.378 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.5394, allocations: 51.41 kB / 1.378 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.5396, allocations: 120.1 kB / 1.379 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.5396, allocations: 25.7 kB / 1.379 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.5397, allocations: 92.12 kB / 1.379 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.5397, allocations: 15.81 kB / 1.379 GB, free: 12.06 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.5397, allocations: 4 kB / 1.379 GB, free: 12.06 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5398, allocations: 310.8 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.54, allocations: 51.95 kB / 1.379 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.5402, allocations: 51.89 kB / 1.379 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.5404, allocations: 51.95 kB / 1.379 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.5404, allocations: 0 / 1.379 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003682/0.5407, allocations: 133.6 kB / 1.379 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.5408, allocations: 4.938 kB / 1.379 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.5408, allocations: 0 / 1.379 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.5408, allocations: 4 kB / 1.379 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.5409, allocations: 19.97 kB / 1.379 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.541, allocations: 4 kB / 1.379 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.106e-05/0.5411, allocations: 27.89 kB / 1.379 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.5411, allocations: 3.953 kB / 1.379 GB, free: 11.39 MB / 0.8855 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 9.005e-05/0.5412, allocations: 115.4 kB / 1.379 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.5412, allocations: 12 kB / 1.379 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004293/0.5417, allocations: 149.4 kB / 1.38 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.5417, allocations: 0 / 1.38 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.5417, allocations: 0 / 1.38 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.5417, allocations: 7.938 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.5419, allocations: 189.6 kB / 1.38 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5419, allocations: 0 / 1.38 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.542, allocations: 23.97 kB / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.542, allocations: 0 / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.542, allocations: 0 / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.542, allocations: 0 / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.542, allocations: 0 / 1.38 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.5425, allocations: 243.6 kB / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.5426, allocations: 88.95 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.5426, allocations: 0 / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.5427, allocations: 19.97 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.5428, allocations: 4.047 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.5428, allocations: 3.984 kB / 1.38 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.464e-05/0.5428, allocations: 103.3 kB / 1.38 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5429, allocations: 4 kB / 1.38 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002197/0.5431, allocations: 15.98 kB / 1.38 GB, free: 10.33 MB / 0.8855 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.0001806/0.5433, allocations: 95.25 kB / 1.38 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003722/0.5436, allocations: 103.9 kB / 1.38 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.5437, allocations: 0 / 1.38 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.5438, allocations: 55.89 kB / 1.38 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.544, allocations: 7.953 kB / 1.38 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.5444, allocations: 156.6 kB / 1.381 GB, free: 9.887 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.5447, allocations: 0.6965 MB / 1.381 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.538e-05/0.5448, allocations: 11.97 kB / 1.381 GB, free: 9.152 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.607e-05/0.5448, allocations: 7.438 kB / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of SimCode: time 4.81e-07/0.5448, allocations: 0 / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of Templates: time 0.003015/0.5478, allocations: 0.6358 MB / 1.382 GB, free: 8.512 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches