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.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.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.00126/0.00126, allocations: 103.1 kB / 16.27 MB, free: 6.02 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.00118/0.00118, allocations: 190 kB / 17.19 MB, free: 5.656 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.308/1.308, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.253/2.253, allocations: 390.3 MB / 0.6653 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 69.86 kB / 0.8132 GB, free: 32.98 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3292, allocations: 140.4 MB / 0.9503 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.002285/0.3315, allocations: 0.5886 MB / 0.9509 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003291/0.3319, allocations: 91.8 kB / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.073e-05/0.3319, allocations: 0 / 0.9509 GB, free: 8.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.977e-05/0.3319, allocations: 3.938 kB / 0.9509 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.586e-05/0.332, allocations: 3.938 kB / 0.9509 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.3323, allocations: 11.98 kB / 0.951 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.3323, allocations: 8 kB / 0.951 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.898e-05/0.3324, allocations: 4 kB / 0.951 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.274e-05/0.3324, allocations: 7.969 kB / 0.951 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.132e-05/0.3325, allocations: 7.938 kB / 0.951 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.3325, allocations: 3.938 kB / 0.951 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.166e-05/0.3326, allocations: 15.98 kB / 0.951 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.3326, allocations: 0 / 0.951 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.183e-05/0.3326, allocations: 3.938 kB / 0.951 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.899e-05/0.3327, allocations: 19.98 kB / 0.951 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3327, allocations: 0 / 0.951 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3327, allocations: 4 kB / 0.951 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3327, allocations: 0 / 0.951 GB, free: 8.117 MB / 0.7325 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.0003649/0.3331, allocations: 315.6 kB / 0.9513 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3332, allocations: 12.03 kB / 0.9513 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.3333, allocations: 12.83 kB / 0.9514 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.903e-05/0.3334, allocations: 160.4 kB / 0.9515 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.3335, allocations: 384 / 0.9515 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.3335, allocations: 4.375 kB / 0.9515 GB, free: 7.535 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.3336, allocations: 46.23 kB / 0.9516 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3336, allocations: 192 / 0.9516 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.3336, allocations: 3.938 kB / 0.9516 GB, free: 7.48 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3337, allocations: 0 / 0.9516 GB, free: 7.48 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.595e-05/0.3337, allocations: 15.92 kB / 0.9516 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.3339, allocations: 157.7 kB / 0.9517 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.3341, allocations: 42.59 kB / 0.9518 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.085e-05/0.3342, allocations: 16.92 kB / 0.9518 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3342, allocations: 3.938 kB / 0.9518 GB, free: 7.188 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.3342, allocations: 34.55 kB / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.3342, allocations: 0 / 0.9518 GB, free: 7.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0002376/0.3345, allocations: 57.56 kB / 0.9519 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3345, allocations: 59.39 kB / 0.9519 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.219e-05/0.3346, allocations: 93.86 kB / 0.952 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.3346, allocations: 25.7 kB / 0.952 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.3347, allocations: 80.14 kB / 0.9521 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.669e-05/0.3347, allocations: 12.12 kB / 0.9521 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.3347, allocations: 9.719 kB / 0.9521 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3349, allocations: 318.8 kB / 0.9524 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.3349, allocations: 7.984 kB / 0.9525 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/0.335, allocations: 8 kB / 0.9525 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.501e-05/0.335, allocations: 21.12 kB / 0.9525 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3351, allocations: 0 / 0.9525 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001226/0.3352, allocations: 53.61 kB / 0.9525 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3352, allocations: 7.984 kB / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3352, allocations: 0 / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3352, allocations: 7.938 kB / 0.9525 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/0.3356, allocations: 39.94 kB / 0.9526 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.337, allocations: 1.408 MB / 0.954 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.423e-05/0.3371, allocations: 8.031 kB / 0.954 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.3371, allocations: 0 / 0.954 GB, free: 4.742 MB / 0.7325 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.158e-05/0.3372, allocations: 111.8 kB / 0.9541 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.3372, allocations: 0 / 0.9541 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.661e-05/0.3372, allocations: 7.5 kB / 0.9541 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3372, allocations: 0 / 0.9541 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3372, allocations: 3.984 kB / 0.9541 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3372, allocations: 64 / 0.9541 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.3374, allocations: 161.5 kB / 0.9542 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3374, allocations: 0 / 0.9542 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.3377, allocations: 47.92 kB / 0.9543 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3378, allocations: 0 / 0.9543 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.3378, allocations: 0 / 0.9543 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.339, allocations: 1.41 MB / 0.9557 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.339, allocations: 0 / 0.9557 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.3392, allocations: 93.05 kB / 0.9558 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.3392, allocations: 77.11 kB / 0.9558 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.3392, allocations: 7.938 kB / 0.9558 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.3393, allocations: 0 / 0.9558 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.851e-05/0.3393, allocations: 0 / 0.9558 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.3393, allocations: 4 kB / 0.9558 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.914e-05/0.3393, allocations: 75.28 kB / 0.9559 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.3394, allocations: 0 / 0.9559 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002/0.3396, allocations: 8 kB / 0.9559 GB, free: 2.516 MB / 0.7325 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.000141/0.3397, allocations: 103.2 kB / 0.956 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004734/0.3402, allocations: 55.92 kB / 0.9561 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.3402, allocations: 8 kB / 0.9561 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.3406, allocations: 55.84 kB / 0.9561 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.3408, allocations: 4 kB / 0.9561 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.3412, allocations: 127.7 kB / 0.9563 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.3415, allocations: 0.669 MB / 0.9569 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.3415, allocations: 11.44 kB / 0.9569 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.3415, allocations: 0 / 0.9569 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of Templates: time 0.002031/0.3435, allocations: 0.5931 MB / 0.9575 GB, free: 0.8281 MB / 0.7325 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/jenkins1/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