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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001475/0.001475, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.685/2.685, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 64.16 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3344, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003279/0.3378, allocations: 1.553 MB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004371/0.3382, allocations: 115.7 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.3383, allocations: 0 / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.383e-05/0.3384, allocations: 0 / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.561e-05/0.3385, allocations: 3.938 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.3387, allocations: 19.97 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.711e-05/0.3388, allocations: 55.78 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.445e-05/0.3389, allocations: 4 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.158e-05/0.3389, allocations: 15.92 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.221e-05/0.339, allocations: 27.86 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.836e-05/0.339, allocations: 4 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.281e-05/0.3391, allocations: 15.97 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.3392, allocations: 8 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.933e-05/0.3392, allocations: 23.86 kB / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.3393, allocations: 39.88 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.3393, allocations: 7.984 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3394, allocations: 4 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.3394, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 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.0005726/0.3399, allocations: 375.5 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.34, allocations: 15.97 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.714e-05/0.34, allocations: 8.844 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3402, allocations: 180.2 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.3402, allocations: 384 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.3403, allocations: 4.375 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.3405, allocations: 74.22 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3406, allocations: 192 / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3406, allocations: 7.938 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3406, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.3409, allocations: 79.91 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004306/0.3413, allocations: 280.9 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.3416, allocations: 66.47 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.3417, allocations: 48.91 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002946/0.342, allocations: 109.1 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.3421, allocations: 30.56 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3421, allocations: 0 / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005531/0.3426, allocations: 157.4 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3427, allocations: 51.41 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3428, allocations: 125.8 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3428, allocations: 25.7 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.3429, allocations: 96.08 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.3429, allocations: 11.8 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.343, allocations: 21.72 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3431, allocations: 310.8 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.3433, allocations: 43.95 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.3434, allocations: 35.95 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.3437, allocations: 80.78 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3437, allocations: 3.938 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003198/0.344, allocations: 105.6 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3441, allocations: 7.938 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3441, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3441, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.3442, allocations: 27.91 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3443, allocations: 0 / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.968e-05/0.3443, allocations: 15.98 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.3444, allocations: 0 / 1.057 GB, free: 3.797 MB / 0.8106 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 9.073e-05/0.3444, allocations: 113.8 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.3445, allocations: 11.91 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003913/0.3449, allocations: 125.4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3449, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3449, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3449, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.3451, allocations: 185.6 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3452, allocations: 4 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.469e-05/0.3453, allocations: 15.98 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3453, allocations: 4 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-06/0.3453, allocations: 0 / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.3453, allocations: 3.984 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3453, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003864/0.3457, allocations: 203.3 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3457, allocations: 93 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.3458, allocations: 0 / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.3459, allocations: 15.98 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.3459, allocations: 0 / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.3459, allocations: 8.359 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.76e-05/0.346, allocations: 102.1 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.346, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002311/0.3463, allocations: 12 kB / 1.058 GB, free: 2.816 MB / 0.8106 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.0001642/0.3464, allocations: 103.2 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.3468, allocations: 75.91 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3468, allocations: 0 / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.347, allocations: 44.05 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.3472, allocations: 15.88 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003937/0.3476, allocations: 196.8 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.3479, allocations: 0.6887 MB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.303e-05/0.348, allocations: 7.438 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.348, allocations: 4 kB / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of Templates: time 0.002513/0.3505, allocations: 0.8849 MB / 1.06 GB, free: 0.7383 MB / 0.8106 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