Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.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.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.001335, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001678/0.001679, allocations: 195.2 kB / 16.25 MB, free: 6.621 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.421/1.421, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.969/2.969, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 70.11 kB / 0.8986 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3341, allocations: 157.4 MB / 1.052 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003033/0.3372, allocations: 1.495 MB / 1.054 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002755/0.3375, allocations: 95.73 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.59e-05/0.3376, allocations: 4 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.458e-05/0.3376, allocations: 0 / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.276e-05/0.3377, allocations: 7.922 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3379, allocations: 19.98 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.045e-05/0.338, allocations: 19.94 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3381, allocations: 7.984 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.501e-05/0.3381, allocations: 7.938 kB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.218e-05/0.3382, allocations: 15.92 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.3382, allocations: 4 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.3383, allocations: 15.98 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.3383, allocations: 4 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.844e-05/0.3383, allocations: 19.91 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.3385, allocations: 27.91 kB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3385, allocations: 4 kB / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3385, allocations: 0 / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.3385, allocations: 0 / 1.054 GB, free: 7.012 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000462/0.339, allocations: 347.6 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.339, allocations: 8.625 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.3392, allocations: 12.92 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.3393, allocations: 172.4 kB / 1.054 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.3393, allocations: 384 / 1.054 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.3394, allocations: 4.375 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.3396, allocations: 62.16 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.3396, allocations: 192 / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.3396, allocations: 3.938 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3396, allocations: 0 / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.3398, allocations: 51.94 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004158/0.3403, allocations: 268.9 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.3404, allocations: 58.42 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3406, allocations: 28.91 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.3406, allocations: 0 / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.3406, allocations: 38.55 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.3406, allocations: 0 / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004362/0.3411, allocations: 101.6 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.3411, allocations: 55.34 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.3412, allocations: 109.9 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.3412, allocations: 25.7 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/0.3413, allocations: 88.12 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.3413, allocations: 11.84 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.3413, allocations: 13.66 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3414, allocations: 314.8 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.3416, allocations: 23.97 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.3417, allocations: 27.97 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.3419, allocations: 52.81 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3419, allocations: 0 / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002434/0.3421, allocations: 77.69 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3422, allocations: 13.88 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3422, allocations: 0 / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.3422, allocations: 0 / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3423, allocations: 11.98 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-06/0.3423, allocations: 3.938 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.609e-05/0.3424, allocations: 7.984 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.3424, allocations: 0 / 1.056 GB, free: 4.832 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 (2): * Single equations (assignments): 2 * 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.406e-05/0.3425, allocations: 115.3 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.3425, allocations: 7.906 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.3426, allocations: 11.52 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3426, allocations: 4 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3426, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3426, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.3428, allocations: 165.6 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3428, allocations: 4 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.191e-05/0.3429, allocations: 7.984 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.3429, allocations: 4 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3429, allocations: 4 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3429, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3429, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.3432, allocations: 183.4 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.3432, allocations: 77.11 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3432, allocations: 256 / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.686e-05/0.3433, allocations: 16.02 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.3434, allocations: 4 kB / 1.056 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-06/0.3434, allocations: 3.938 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.326e-05/0.3435, allocations: 87.27 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3435, allocations: 0 / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002233/0.3437, allocations: 4 kB / 1.057 GB, free: 4.055 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 (2): * Single equations (assignments): 2 * 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.0001012/0.3438, allocations: 95.25 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002615/0.3441, allocations: 59.89 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3441, allocations: 0 / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.3442, allocations: 31.91 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.3445, allocations: 6.188 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003709/0.3449, allocations: 137.5 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.3452, allocations: 0.6807 MB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.567e-05/0.3452, allocations: 0 / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.3453, allocations: 7.438 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3453, allocations: 0 / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of Templates: time 0.002737/0.348, allocations: 0.5209 MB / 1.058 GB, free: 2.465 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches