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.001122/0.001122, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009557/0.009558, allocations: 172 kB / 16.27 MB, free: 6.648 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.467/1.467, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.825/2.825, allocations: 462.6 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.000381/0.000381, allocations: 15.11 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3301, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.001566/0.3317, allocations: 1.21 MB / 1.06 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003078/0.332, allocations: 107.7 kB / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.538e-05/0.3321, allocations: 4 kB / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.3321, allocations: 11.86 kB / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.727e-05/0.3322, allocations: 7.922 kB / 1.06 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.3324, allocations: 19.98 kB / 1.06 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.397e-05/0.3324, allocations: 47.84 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.509e-05/0.3325, allocations: 11.94 kB / 1.06 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.253e-05/0.3326, allocations: 11.92 kB / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.639e-05/0.3326, allocations: 19.92 kB / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.3327, allocations: 0 / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.3327, allocations: 19.98 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/0.3328, allocations: 11.97 kB / 1.06 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.684e-05/0.3328, allocations: 41.58 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.3329, allocations: 59.8 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.333, allocations: 4 kB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.333, allocations: 0 / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.516e-06/0.333, allocations: 0 / 1.06 GB, free: 3.906 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.0005018/0.3335, allocations: 379.5 kB / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.3335, allocations: 12.03 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.103e-05/0.3336, allocations: 8.844 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.3337, allocations: 176.3 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.3337, allocations: 384 / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3337, allocations: 8.359 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.334, allocations: 90.16 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.334, allocations: 192 / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.334, allocations: 7.938 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3341, allocations: 0 / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.3344, allocations: 99.86 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003658/0.3348, allocations: 284.9 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.335, allocations: 82.47 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3352, allocations: 56.84 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002265/0.3354, allocations: 105.1 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.3355, allocations: 34.55 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.3355, allocations: 0 / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0006584/0.3361, allocations: 181.6 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.3362, allocations: 51.41 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3363, allocations: 125.8 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.3363, allocations: 25.7 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.848e-05/0.3364, allocations: 99.98 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.3364, allocations: 3.906 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.3364, allocations: 9.719 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3365, allocations: 322.8 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.3367, allocations: 55.89 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.3369, allocations: 48.14 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.3372, allocations: 108.7 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3372, allocations: 3.938 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003738/0.3376, allocations: 133.5 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.3376, allocations: 4 kB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.3376, allocations: 0 / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.3377, allocations: 0 / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.3378, allocations: 19.98 kB / 1.063 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3378, allocations: 4 kB / 1.063 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.159e-05/0.3379, allocations: 23.91 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3379, allocations: 4 kB / 1.063 GB, free: 1.145 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 8.221e-05/0.338, allocations: 117.8 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.338, allocations: 0 / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004172/0.3385, allocations: 141.5 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3385, allocations: 0 / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3385, allocations: 8 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3385, allocations: 0 / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.3387, allocations: 189.5 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3387, allocations: 0 / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.3388, allocations: 19.98 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3388, allocations: 3.938 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.3388, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3388, allocations: 0 / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3388, allocations: 7.938 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.3392, allocations: 231.4 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.3393, allocations: 81.02 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.3393, allocations: 0 / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3394, allocations: 15.98 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.3395, allocations: 7.984 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3395, allocations: 8 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.15e-05/0.3396, allocations: 95.27 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3396, allocations: 0 / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002405/0.3398, allocations: 12 kB / 1.064 GB, free: 124 kB / 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.0001265/0.3399, allocations: 102.4 kB / 1.064 GB, free: 16 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000401/0.3404, allocations: 107.9 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3404, allocations: 0 / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.3405, allocations: 51.95 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.3408, allocations: 13.62 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003185/0.3411, allocations: 176.5 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3414, allocations: 0.6968 MB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.157e-05/0.3414, allocations: 7.844 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.3414, allocations: 7.438 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3415, allocations: 0 / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.002822/0.3443, allocations: 0.6618 MB / 1.065 GB, free: 14.25 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches