Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_10_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.001145/0.001145, allocations: 104.1 kB / 16.41 MB, free: 6.457 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.001035/0.001035, allocations: 189.7 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.458/2.458, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 71.89 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9326/0.934, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003414/0.9375, allocations: 1.488 MB / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003526/0.9378, allocations: 118.9 kB / 1.169 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.573e-05/0.9379, allocations: 0 / 1.169 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/0.9379, allocations: 7.938 kB / 1.169 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.002e-05/0.938, allocations: 11.92 kB / 1.169 GB, free: 2.246 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.9383, allocations: 23.91 kB / 1.169 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.775e-05/0.9384, allocations: 35.92 kB / 1.169 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.9385, allocations: 15.97 kB / 1.169 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.266e-05/0.9386, allocations: 15.94 kB / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.123e-05/0.9386, allocations: 19.91 kB / 1.169 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.9386, allocations: 4 kB / 1.169 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.179e-05/0.9387, allocations: 23.98 kB / 1.169 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.118e-05/0.9388, allocations: 15.92 kB / 1.169 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.9388, allocations: 23.88 kB / 1.169 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.939, allocations: 67.72 kB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.939, allocations: 0 / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.392e-06/0.939, allocations: 0 / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.939, allocations: 0 / 1.169 GB, free: 2.004 MB / 0.8887 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.0005973/0.9396, allocations: 373 kB / 1.169 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.9396, allocations: 12.62 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.711e-05/0.9397, allocations: 20.83 kB / 1.169 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.9398, allocations: 172.2 kB / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.9399, allocations: 384 / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.9399, allocations: 4.375 kB / 1.17 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.9403, allocations: 74.2 kB / 1.17 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.9403, allocations: 192 / 1.17 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.9403, allocations: 7.922 kB / 1.17 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.9403, allocations: 3.938 kB / 1.17 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.9406, allocations: 79.86 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004106/0.941, allocations: 277 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.9414, allocations: 74.47 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.9415, allocations: 40.91 kB / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002569/0.9418, allocations: 117 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.942, allocations: 34.5 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.942, allocations: 4 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0005446/0.9426, allocations: 141.5 kB / 1.17 GB, free: 424 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.9426, allocations: 51.41 kB / 1.171 GB, free: 360 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.9427, allocations: 131 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.9428, allocations: 25.7 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.576e-05/0.9428, allocations: 100 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.9428, allocations: 7.906 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.9429, allocations: 13.72 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.943, allocations: 322.8 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.9432, allocations: 31.97 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.9433, allocations: 39.95 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.9436, allocations: 80.72 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.9436, allocations: 3.938 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000328/0.944, allocations: 113.5 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.944, allocations: 7.984 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.944, allocations: 4 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.944, allocations: 0 / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.9442, allocations: 11.98 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.9442, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.021e-05/0.9443, allocations: 15.92 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.9443, allocations: 0 / 1.171 GB, free: 15.42 MB / 0.9044 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.706e-05/0.9444, allocations: 125.8 kB / 1.172 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.9444, allocations: 4 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003689/0.9448, allocations: 117.5 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.9448, allocations: 0 / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.9448, allocations: 0 / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.9448, allocations: 0 / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.945, allocations: 189.9 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.945, allocations: 4 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.947e-05/0.9451, allocations: 19.97 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.9451, allocations: 0 / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.9452, allocations: 4 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.9452, allocations: 0 / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.9452, allocations: 0 / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003697/0.9455, allocations: 223.2 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.195e-05/0.9456, allocations: 88.89 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.9456, allocations: 0 / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.9457, allocations: 11.98 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.388e-05/0.9458, allocations: 3.984 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.9458, allocations: 4 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.45e-05/0.9459, allocations: 100.4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9459, allocations: 4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002385/0.9461, allocations: 8 kB / 1.172 GB, free: 14.42 MB / 0.9044 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.0001614/0.9463, allocations: 99.25 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.9466, allocations: 83.91 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.9466, allocations: 0 / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.9468, allocations: 43.91 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.9471, allocations: 15.92 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.9475, allocations: 175.1 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.9477, allocations: 0.6885 MB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.408e-05/0.9478, allocations: 11.44 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of SimCode: time 3.91e-07/0.9478, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of Templates: time 0.002448/0.9502, allocations: 0.8913 MB / 1.174 GB, free: 12.36 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches