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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001147/0.001147, allocations: 100.1 kB / 15.88 MB, free: 8 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.001182/0.001182, allocations: 197.1 kB / 16.79 MB, free: 6.828 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.425/1.425, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.729/2.729, allocations: 461.9 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 66.09 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3299, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003122/0.3331, allocations: 1.51 MB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003367/0.3335, allocations: 95.75 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.509e-05/0.3335, allocations: 0 / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.105e-05/0.3336, allocations: 0 / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.193e-05/0.3337, allocations: 3.938 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.3339, allocations: 15.97 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.978e-05/0.3339, allocations: 23.92 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.685e-05/0.334, allocations: 4 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.631e-05/0.3341, allocations: 15.92 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.837e-05/0.3342, allocations: 11.94 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.3342, allocations: 4 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.3e-05/0.3343, allocations: 11.98 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.3343, allocations: 11.98 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.849e-05/0.3343, allocations: 7.938 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.3344, allocations: 27.95 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3344, allocations: 0 / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.02e-07/0.3344, allocations: 0 / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.3345, allocations: 0 / 1.054 GB, free: 6.578 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.0004957/0.335, allocations: 347.6 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.335, allocations: 15.97 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.3352, allocations: 12.92 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3353, allocations: 164.4 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.3354, allocations: 4.375 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.3354, allocations: 384 / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.3356, allocations: 58.17 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3356, allocations: 192 / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3356, allocations: 3.938 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3357, allocations: 4 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.3359, allocations: 51.94 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.3363, allocations: 256.9 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.3365, allocations: 66.41 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3366, allocations: 36.83 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.3366, allocations: 0 / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3366, allocations: 34.5 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.3366, allocations: 0 / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004443/0.3371, allocations: 105.6 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.3371, allocations: 51.41 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.666e-05/0.3372, allocations: 109.8 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.3373, allocations: 25.7 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.3373, allocations: 84.14 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.3373, allocations: 15.83 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.3374, allocations: 13.66 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3375, allocations: 319 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3376, allocations: 23.97 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.258e-05/0.3377, allocations: 19.98 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.3379, allocations: 56.88 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3379, allocations: 0 / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002379/0.3382, allocations: 81.58 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3382, allocations: 8 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3382, allocations: 0 / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3382, allocations: 0 / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3383, allocations: 11.98 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3383, allocations: 3.938 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.222e-05/0.3384, allocations: 12.02 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3384, allocations: 0 / 1.056 GB, free: 4.395 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.439e-05/0.3385, allocations: 113.8 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.3386, allocations: 7.906 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.3386, allocations: 3.531 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3386, allocations: 0 / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3386, allocations: 3.984 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3386, allocations: 4 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.3388, allocations: 165.6 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3388, allocations: 0 / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.343e-05/0.3389, allocations: 15.98 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3389, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3389, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.3389, allocations: 4 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3389, allocations: 3.938 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.3392, allocations: 179.4 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.517e-05/0.3393, allocations: 81.11 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.3393, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.3394, allocations: 7.984 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.3394, allocations: 4 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.3394, allocations: 0 / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.493e-05/0.3395, allocations: 87.53 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3395, allocations: 7.969 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000218/0.3397, allocations: 4 kB / 1.057 GB, free: 3.621 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.0001322/0.3399, allocations: 99.23 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000262/0.3401, allocations: 51.95 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3401, allocations: 0 / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.3402, allocations: 28.03 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.3406, allocations: 9.656 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/0.3409, allocations: 156.8 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.3412, allocations: 0.677 MB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.3412, allocations: 11.5 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.3412, allocations: 4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of Templates: time 0.00194/0.3432, allocations: 0.6243 MB / 1.059 GB, free: 1.898 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches