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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 109.2 kB / 16.41 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002016/0.002016, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.676/2.676, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001495, allocations: 63.91 kB / 1.055 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8315/0.833, allocations: 157.4 MB / 1.208 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.002854/0.8359, allocations: 1.492 MB / 1.21 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003441/0.8363, allocations: 111.7 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.8364, allocations: 4 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.548e-05/0.8364, allocations: 3.938 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.64e-05/0.8365, allocations: 11.86 kB / 1.21 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.8368, allocations: 23.97 kB / 1.21 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.887e-05/0.8369, allocations: 43.86 kB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.837, allocations: 11.98 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.705e-05/0.837, allocations: 19.92 kB / 1.21 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.051e-05/0.8371, allocations: 15.92 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.8371, allocations: 8 kB / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.362e-05/0.8372, allocations: 19.98 kB / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.061e-05/0.8373, allocations: 19.91 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.768e-05/0.8373, allocations: 23.86 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.8375, allocations: 51.81 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.8375, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.286e-06/0.8375, allocations: 4 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.8375, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 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.0006021/0.8381, allocations: 381.1 kB / 1.211 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.8382, allocations: 12.03 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.8382, allocations: 8.844 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.8384, allocations: 176.2 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.8384, allocations: 384 / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.8384, allocations: 4.312 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.8387, allocations: 78.2 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.8387, allocations: 192 / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.8387, allocations: 7.938 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.8387, allocations: 0 / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.8391, allocations: 79.86 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.8395, allocations: 277 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.8397, allocations: 74.41 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.8399, allocations: 44.92 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002796/0.8402, allocations: 117 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.8403, allocations: 34.56 kB / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 2.855e-06/0.8403, allocations: 0 / 1.211 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005852/0.8409, allocations: 145.5 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.8409, allocations: 59.33 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.841, allocations: 125.2 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.8411, allocations: 29.7 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.482e-05/0.8411, allocations: 100 kB / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.8412, allocations: 3.906 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.745e-05/0.8412, allocations: 13.72 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8414, allocations: 318.8 kB / 1.212 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.8416, allocations: 35.97 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.8417, allocations: 39.95 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.842, allocations: 80.78 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.8421, allocations: 3.938 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000359/0.8424, allocations: 113.5 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.8425, allocations: 7.938 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.8425, allocations: 0 / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.8425, allocations: 0 / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.8426, allocations: 15.98 kB / 1.213 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.8426, allocations: 0 / 1.213 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.308e-05/0.8427, allocations: 15.92 kB / 1.213 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.8428, allocations: 3.984 kB / 1.213 GB, free: 9.293 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.8429, allocations: 125.8 kB / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.8429, allocations: 4 kB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000417/0.8433, allocations: 113.5 kB / 1.213 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.8433, allocations: 0 / 1.213 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/0.8434, allocations: 7.984 kB / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.8434, allocations: 0 / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002321/0.8436, allocations: 185.6 kB / 1.213 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.8436, allocations: 7.922 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.909e-05/0.8437, allocations: 15.98 kB / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.8437, allocations: 0 / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.8438, allocations: 0 / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8438, allocations: 0 / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.8438, allocations: 0 / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/0.8442, allocations: 211.3 kB / 1.213 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.8443, allocations: 85.44 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.8443, allocations: 3.938 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.8444, allocations: 15.92 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.8445, allocations: 7.984 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-06/0.8445, allocations: 4 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.694e-05/0.8446, allocations: 99.27 kB / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8446, allocations: 0 / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002394/0.8448, allocations: 8 kB / 1.213 GB, free: 8.305 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002205/0.845, allocations: 111.2 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003749/0.8454, allocations: 75.91 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.8454, allocations: 4 kB / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.8456, allocations: 43.95 kB / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.8459, allocations: 7.938 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004282/0.8463, allocations: 175.1 kB / 1.214 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.8466, allocations: 0.6885 MB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.035e-05/0.8467, allocations: 15.44 kB / 1.214 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of SimCode: time 4.91e-07/0.8467, allocations: 4 kB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of Templates: time 0.002552/0.8492, allocations: 0.8996 MB / 1.215 GB, free: 6.23 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches