Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_9_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.001323/0.001323, 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.001309/0.001309, 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.407/1.407, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.305/2.305, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 63.91 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.029/1.03, allocations: 140.4 MB / 1.089 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.002751/1.033, allocations: 1.48 MB / 1.09 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000321/1.033, allocations: 115.1 kB / 1.09 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/1.033, allocations: 0.9688 kB / 1.09 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.591e-05/1.033, allocations: 9.062 kB / 1.09 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.279e-05/1.033, allocations: 14.64 kB / 1.09 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002388/1.034, allocations: 20.64 kB / 1.09 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.364e-05/1.034, allocations: 43.45 kB / 1.09 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/1.034, allocations: 11.8 kB / 1.09 GB, free: 4.613 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.282e-05/1.034, allocations: 17.22 kB / 1.09 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.655e-05/1.034, allocations: 19.27 kB / 1.09 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/1.034, allocations: 3.375 kB / 1.09 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.856e-05/1.034, allocations: 25.8 kB / 1.09 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/1.034, allocations: 13.47 kB / 1.09 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.145e-05/1.034, allocations: 25.91 kB / 1.09 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/1.034, allocations: 58.22 kB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/1.034, allocations: 0 / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/1.034, allocations: 1.031 kB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.229e-06/1.034, allocations: 0 / 1.09 GB, free: 4.539 MB / 0.8575 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.0005112/1.035, allocations: 374.9 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/1.035, allocations: 17.98 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.816e-05/1.035, allocations: 7.844 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.621e-05/1.035, allocations: 178.4 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/1.035, allocations: 1.531 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/1.035, allocations: 6.688 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/1.035, allocations: 77.33 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/1.035, allocations: 192 / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/1.035, allocations: 3.938 kB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/1.035, allocations: 5.562 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003144/1.036, allocations: 76.7 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003392/1.036, allocations: 274.9 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/1.036, allocations: 77.47 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/1.036, allocations: 45.25 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002332/1.037, allocations: 106.7 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/1.037, allocations: 32.39 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/1.037, allocations: 4 kB / 1.092 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005979/1.037, allocations: 147.2 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/1.037, allocations: 51.97 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/1.038, allocations: 129 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/1.038, allocations: 29.7 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.021e-05/1.038, allocations: 93.61 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/1.038, allocations: 9.891 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/1.038, allocations: 14.14 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.464e-05/1.038, allocations: 318.1 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/1.038, allocations: 35.56 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/1.038, allocations: 40.22 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/1.038, allocations: 79.28 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/1.038, allocations: 7.875 kB / 1.093 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003657/1.039, allocations: 109 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/1.039, allocations: 6 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.039, allocations: 0 / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/1.039, allocations: 5.297 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/1.039, allocations: 15.53 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/1.039, allocations: 0 / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.597e-05/1.039, allocations: 16.8 kB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/1.039, allocations: 4.828 kB / 1.093 GB, free: 2.625 MB / 0.8575 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.189e-05/1.039, allocations: 123 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/1.039, allocations: 6.453 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004246/1.04, allocations: 115.8 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/1.04, allocations: 1.156 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/1.04, allocations: 0.7031 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/1.04, allocations: 0 / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/1.04, allocations: 191.3 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.04, allocations: 1.125 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/1.04, allocations: 19.19 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/1.04, allocations: 0.6875 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/1.04, allocations: 1.203 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.04, allocations: 0.9375 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.04, allocations: 4 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/1.04, allocations: 212.5 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.66e-05/1.04, allocations: 83.22 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/1.04, allocations: 1.281 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/1.041, allocations: 11.91 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/1.041, allocations: 7.922 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/1.041, allocations: 1.25 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.837e-05/1.041, allocations: 101 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.1e-07/1.041, allocations: 0 / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002228/1.041, allocations: 9.656 kB / 1.094 GB, free: 1.887 MB / 0.8575 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.0001597/1.041, allocations: 114.2 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003783/1.042, allocations: 76.75 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.042, allocations: 4.625 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/1.042, allocations: 38.56 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/1.042, allocations: 22.31 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004218/1.042, allocations: 168.5 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/1.043, allocations: 0.69 MB / 1.095 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.475e-05/1.043, allocations: 13.59 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/1.043, allocations: 4 kB / 1.095 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of Templates: time 0.003473/1.046, allocations: 0.9029 MB / 1.096 GB, free: 0.8164 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches