Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008985/0.008985, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001706/0.001706, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.664/2.664, allocations: 437 MB / 0.7105 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002653/0.002654, allocations: 63.89 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3369, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.002068/0.339, allocations: 0.5824 MB / 1.167 GB, free: 6.742 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003433/0.3394, allocations: 99.66 kB / 1.167 GB, free: 6.645 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.91e-05/0.3394, allocations: 0 / 1.167 GB, free: 6.645 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.045e-05/0.3395, allocations: 3.938 kB / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.652e-05/0.3395, allocations: 0 / 1.167 GB, free: 6.641 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.3398, allocations: 15.98 kB / 1.167 GB, free: 6.625 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.131e-05/0.3398, allocations: 7.984 kB / 1.167 GB, free: 6.617 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.668e-05/0.3399, allocations: 0 / 1.167 GB, free: 6.617 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.113e-05/0.3399, allocations: 11.92 kB / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.764e-05/0.34, allocations: 0 / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.34, allocations: 0 / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.3401, allocations: 23.92 kB / 1.167 GB, free: 6.582 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.3401, allocations: 0 / 1.167 GB, free: 6.582 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.3401, allocations: 8 kB / 1.167 GB, free: 6.574 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.3402, allocations: 15.91 kB / 1.167 GB, free: 6.559 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3403, allocations: 0 / 1.167 GB, free: 6.559 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3403, allocations: 0 / 1.167 GB, free: 6.559 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.3403, allocations: 0 / 1.167 GB, free: 6.559 MB / 0.92 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.0003958/0.3407, allocations: 324.1 kB / 1.167 GB, free: 6.191 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3407, allocations: 8.031 kB / 1.167 GB, free: 6.184 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.413e-05/0.3408, allocations: 30.75 kB / 1.167 GB, free: 6.145 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.3409, allocations: 16.88 kB / 1.167 GB, free: 6.129 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.3411, allocations: 168.4 kB / 1.167 GB, free: 5.926 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3411, allocations: 4.359 kB / 1.167 GB, free: 5.922 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.3411, allocations: 384 / 1.167 GB, free: 5.922 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.3412, allocations: 38.25 kB / 1.168 GB, free: 5.879 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3413, allocations: 7.938 kB / 1.168 GB, free: 5.871 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3413, allocations: 0 / 1.168 GB, free: 5.871 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3413, allocations: 0 / 1.168 GB, free: 5.871 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.3414, allocations: 23.92 kB / 1.168 GB, free: 5.848 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.3415, allocations: 145.7 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.3417, allocations: 42.56 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.379e-05/0.3418, allocations: 16.91 kB / 1.168 GB, free: 5.586 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3418, allocations: 0 / 1.168 GB, free: 5.586 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3419, allocations: 34.56 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3419, allocations: 4 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002523/0.3421, allocations: 61.55 kB / 1.168 GB, free: 5.473 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3422, allocations: 55.41 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.003e-05/0.3422, allocations: 89.86 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.3423, allocations: 29.64 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.74e-05/0.3423, allocations: 80.14 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.3423, allocations: 7.891 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.3424, allocations: 25.66 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3425, allocations: 310.8 kB / 1.168 GB, free: 4.84 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.161e-05/0.3426, allocations: 7.984 kB / 1.168 GB, free: 4.832 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.237e-05/0.3426, allocations: 8 kB / 1.168 GB, free: 4.824 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.477e-05/0.3427, allocations: 20.84 kB / 1.168 GB, free: 4.801 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3427, allocations: 3.938 kB / 1.168 GB, free: 4.797 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001192/0.3428, allocations: 53.67 kB / 1.168 GB, free: 4.738 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3428, allocations: 8 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.3429, allocations: 3.938 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3429, allocations: 0 / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.3433, allocations: 39.94 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.3447, allocations: 1.412 MB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.164e-05/0.3447, allocations: 3.953 kB / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.3447, allocations: 0 / 1.17 GB, free: 3.133 MB / 0.92 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 7.814e-05/0.3448, allocations: 116.9 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-06/0.3448, allocations: 4.094 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.3449, allocations: 11.48 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3449, allocations: 0 / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.3449, allocations: 4 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3449, allocations: 0 / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.345, allocations: 149.6 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.345, allocations: 0 / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003768/0.3454, allocations: 51.92 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3454, allocations: 0 / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.3454, allocations: 4 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.3466, allocations: 1.412 MB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3466, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.3468, allocations: 77.08 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.3468, allocations: 77.11 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.837e-06/0.3468, allocations: 3.938 kB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.645e-05/0.3468, allocations: 0 / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.3469, allocations: 8 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.3469, allocations: 8.047 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.782e-05/0.3469, allocations: 79.22 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3469, allocations: 0 / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002024/0.3471, allocations: 4 kB / 1.172 GB, free: 0.9023 MB / 0.92 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.0004664/0.3476, allocations: 0.6202 MB / 1.172 GB, free: 256 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004636/0.3481, allocations: 55.92 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3481, allocations: 4 kB / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002409/0.3483, allocations: 35.95 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.3485, allocations: 7.938 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.349, allocations: 118.9 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.3492, allocations: 0.6768 MB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.021e-05/0.3492, allocations: 0 / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.089e-05/0.3493, allocations: 11.44 kB / 1.173 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of SimCode: time 1.543e-06/0.3493, allocations: 4 kB / 1.173 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.3678, allocations: 1.29 MB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.54, allocations: 11.38 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches