Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|TExact",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|TExact",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005755/0.005756, allocations: 101.7 kB / 15.73 MB, free: 6.469 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.001074/0.001074, allocations: 194 kB / 16.67 MB, free: 6.379 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.34/2.34, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 73.86 kB / 0.9509 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3418, allocations: 140.4 MB / 1.088 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001947/0.3438, allocations: 0.5765 MB / 1.089 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003486/0.3442, allocations: 107.6 kB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.015e-05/0.3442, allocations: 0 / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.3442, allocations: 0 / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.089e-05/0.3443, allocations: 4 kB / 1.089 GB, free: 0.7812 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.3446, allocations: 15.92 kB / 1.089 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.529e-05/0.3447, allocations: 4 kB / 1.089 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.3447, allocations: 4 kB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.944e-05/0.3447, allocations: 0 / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.264e-05/0.3448, allocations: 11.97 kB / 1.089 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.3449, allocations: 0 / 1.089 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.276e-05/0.3449, allocations: 15.98 kB / 1.089 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.345, allocations: 3.938 kB / 1.089 GB, free: 0.7266 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.365e-05/0.345, allocations: 0 / 1.089 GB, free: 0.7266 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.689e-05/0.3451, allocations: 19.98 kB / 1.089 GB, free: 0.707 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3451, allocations: 4 kB / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3451, allocations: 0 / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.3451, allocations: 0 / 1.089 GB, free: 0.7031 MB / 0.8419 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.0004668/0.3456, allocations: 315.9 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3456, allocations: 12.03 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.3458, allocations: 8.922 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.346, allocations: 164.4 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.346, allocations: 4.375 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.346, allocations: 8.25 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.3461, allocations: 42.25 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3462, allocations: 192 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3462, allocations: 3.938 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3462, allocations: 0 / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.355e-05/0.3463, allocations: 11.98 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.3465, allocations: 153.7 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.3467, allocations: 46.53 kB / 1.089 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.78e-05/0.3467, allocations: 12.92 kB / 1.089 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.3468, allocations: 7.984 kB / 1.089 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.3468, allocations: 34.56 kB / 1.089 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.3468, allocations: 0 / 1.089 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002536/0.3471, allocations: 61.61 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.3471, allocations: 51.41 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.61e-05/0.3472, allocations: 93.86 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.3472, allocations: 25.7 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.3474, allocations: 84.08 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.39e-05/0.3474, allocations: 15.83 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.3475, allocations: 9.719 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002018/0.3477, allocations: 318.8 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.798e-05/0.3477, allocations: 11.98 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.909e-05/0.3478, allocations: 4 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.247e-05/0.3478, allocations: 24.84 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3479, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001363/0.348, allocations: 49.59 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.348, allocations: 4 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.348, allocations: 0 / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.3481, allocations: 3.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.3485, allocations: 47.92 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.3499, allocations: 1.409 MB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.252e-05/0.35, allocations: 7.906 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.35, allocations: 4.031 kB / 1.092 GB, free: 13.32 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): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.319e-05/0.3501, allocations: 109.8 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.3501, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.61e-05/0.3501, allocations: 7.438 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3501, allocations: 4 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3501, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.3502, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.3503, allocations: 157.6 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3503, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.3506, allocations: 47.92 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3506, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.3507, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.3523, allocations: 1.404 MB / 1.093 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3523, allocations: 0 / 1.093 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.3524, allocations: 73.25 kB / 1.093 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.3525, allocations: 77.11 kB / 1.093 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.3525, allocations: 11.92 kB / 1.093 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.58e-05/0.3526, allocations: 4 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.134e-05/0.3526, allocations: 0 / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.3526, allocations: 0 / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.744e-05/0.3527, allocations: 75.28 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3527, allocations: 4 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000243/0.3529, allocations: 8 kB / 1.094 GB, free: 11.1 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): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002092/0.3531, allocations: 107.8 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004828/0.3536, allocations: 59.91 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3536, allocations: 4 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.3539, allocations: 39.95 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.3541, allocations: 9.031 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.3546, allocations: 89.06 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.355, allocations: 0.6768 MB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.02e-05/0.355, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.3551, allocations: 11.44 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of SimCode: time 1.893e-06/0.3551, allocations: 0 / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of Templates: time 0.003187/0.3583, allocations: 423.6 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches