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.001409/0.001409, allocations: 108 kB / 15.61 MB, free: 152 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.002286/0.002287, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.402 MB / 190.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.629/2.629, allocations: 437 MB / 0.7103 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001393, allocations: 63.91 kB / 0.8692 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6632/0.6647, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.002949/0.6677, allocations: 1.485 MB / 1.019 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003235/0.668, allocations: 120.4 kB / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.6681, allocations: 0 / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.806e-05/0.6681, allocations: 0 / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.396e-05/0.6682, allocations: 15.86 kB / 1.019 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002134/0.6684, allocations: 15.98 kB / 1.019 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.128e-05/0.6685, allocations: 51.78 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.203e-05/0.6686, allocations: 12 kB / 1.019 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.481e-05/0.6687, allocations: 11.98 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.22e-05/0.6687, allocations: 35.83 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.6687, allocations: 4 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.6688, allocations: 19.98 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.6689, allocations: 8 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.6689, allocations: 19.86 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.669, allocations: 59.8 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.6691, allocations: 0 / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6691, allocations: 0 / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.6691, allocations: 4 kB / 1.019 GB, free: 0.8281 MB / 0.7637 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.0005392/0.6696, allocations: 381.3 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.6697, allocations: 8.031 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.6697, allocations: 8.844 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.6698, allocations: 176.2 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.6698, allocations: 384 / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.6699, allocations: 4.375 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.6701, allocations: 78.16 kB / 1.02 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.6702, allocations: 192 / 1.02 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.6702, allocations: 7.938 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.6702, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.6705, allocations: 71.92 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004042/0.6709, allocations: 285 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.6711, allocations: 74.41 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.6713, allocations: 40.91 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002648/0.6716, allocations: 117 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.6716, allocations: 30.56 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.6716, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005716/0.6722, allocations: 153.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.6722, allocations: 51.41 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.6724, allocations: 133.8 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.6724, allocations: 25.7 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.693e-05/0.6724, allocations: 88.14 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.6725, allocations: 7.906 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.6725, allocations: 21.64 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.6726, allocations: 318.8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.6728, allocations: 35.95 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.6729, allocations: 39.97 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.6732, allocations: 85.03 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6732, allocations: 3.938 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003637/0.6736, allocations: 105.5 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.6736, allocations: 8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6736, allocations: 0 / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.6737, allocations: 3.938 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.6738, allocations: 19.97 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.6738, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.105e-05/0.6739, allocations: 15.92 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.6739, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 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 7.493e-05/0.674, allocations: 113.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/0.674, allocations: 3.906 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.6744, allocations: 125.5 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.6744, allocations: 0 / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.6744, allocations: 4 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6744, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.6746, allocations: 177.6 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.6746, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.932e-05/0.6747, allocations: 23.92 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6747, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.6748, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.6748, allocations: 4 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.6748, allocations: 4 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.6752, allocations: 211.2 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-05/0.6752, allocations: 77.11 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.6752, allocations: 7.984 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.6754, allocations: 15.98 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.6754, allocations: 4 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.6754, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6e-05/0.6755, allocations: 102.9 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6755, allocations: 0 / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002393/0.6757, allocations: 16 kB / 1.022 GB, free: 13.25 MB / 0.7794 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.0001415/0.6759, allocations: 103.2 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003627/0.6762, allocations: 79.92 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.6763, allocations: 0 / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.6764, allocations: 43.95 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.6767, allocations: 11.88 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.677, allocations: 153.5 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.6773, allocations: 0.6924 MB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.034e-05/0.6774, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.712e-05/0.6774, allocations: 7.438 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.6774, allocations: 4 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of Templates: time 0.003229/0.6806, allocations: 0.7919 MB / 1.024 GB, free: 11.31 MB / 0.7794 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches