Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_latest_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.00739/0.00739, allocations: 104.8 kB / 15.74 MB, free: 6.062 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.001867/0.001867, allocations: 194.7 kB / 16.67 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.874/2.874, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 71.83 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2831, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001558/0.2847, allocations: 0.5992 MB / 1.242 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002605/0.2849, allocations: 91.67 kB / 1.242 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.655e-05/0.285, allocations: 4 kB / 1.242 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.368e-05/0.285, allocations: 0 / 1.242 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.372e-05/0.285, allocations: 0 / 1.242 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.2852, allocations: 15.92 kB / 1.242 GB, free: 9.48 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.218e-05/0.2853, allocations: 11.98 kB / 1.242 GB, free: 9.469 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.2853, allocations: 7.984 kB / 1.242 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.386e-05/0.2853, allocations: 0 / 1.242 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.04e-05/0.2854, allocations: 4 kB / 1.242 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.2854, allocations: 0 / 1.242 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.553e-05/0.2855, allocations: 15.98 kB / 1.242 GB, free: 9.441 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.2855, allocations: 3.938 kB / 1.242 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.2855, allocations: 7.984 kB / 1.242 GB, free: 9.43 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.468e-05/0.2856, allocations: 19.91 kB / 1.242 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2856, allocations: 0 / 1.242 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2856, allocations: 4 kB / 1.242 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.2856, allocations: 4 kB / 1.242 GB, free: 9.402 MB / 0.9981 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.000351/0.286, allocations: 321.6 kB / 1.243 GB, free: 9.039 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.286, allocations: 12.03 kB / 1.243 GB, free: 9.027 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.2861, allocations: 30.75 kB / 1.243 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.2862, allocations: 12.88 kB / 1.243 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.2863, allocations: 160.4 kB / 1.243 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.2863, allocations: 4.312 kB / 1.243 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-06/0.2864, allocations: 8.312 kB / 1.243 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.2865, allocations: 42.25 kB / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2865, allocations: 3.938 kB / 1.243 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.2865, allocations: 0 / 1.243 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2865, allocations: 0 / 1.243 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.794e-05/0.2866, allocations: 15.98 kB / 1.243 GB, free: 8.703 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.2868, allocations: 153.7 kB / 1.243 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.2869, allocations: 46.53 kB / 1.243 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.559e-05/0.287, allocations: 8.922 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.287, allocations: 4 kB / 1.243 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.2871, allocations: 30.56 kB / 1.243 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2871, allocations: 0 / 1.243 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0002022/0.2873, allocations: 61.61 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.2873, allocations: 55.41 kB / 1.243 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.093e-05/0.2874, allocations: 89.86 kB / 1.243 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2874, allocations: 25.7 kB / 1.243 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.2874, allocations: 80.14 kB / 1.243 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.2875, allocations: 11.89 kB / 1.243 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.2875, allocations: 17.7 kB / 1.243 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2876, allocations: 314.8 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.582e-05/0.2877, allocations: 0 / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.2877, allocations: 15.98 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.073e-05/0.2878, allocations: 29.11 kB / 1.244 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2878, allocations: 0 / 1.244 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001158/0.288, allocations: 45.69 kB / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.288, allocations: 4 kB / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.288, allocations: 3.938 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.288, allocations: 0 / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.2884, allocations: 55.86 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.2898, allocations: 1.393 MB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.389e-05/0.2899, allocations: 16.03 kB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.2899, allocations: 4 kB / 1.245 GB, free: 5.988 MB / 0.9981 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.802e-05/0.29, allocations: 120.8 kB / 1.245 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.29, allocations: 0 / 1.245 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.29, allocations: 11.5 kB / 1.245 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.29, allocations: 0 / 1.245 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.29, allocations: 3.938 kB / 1.245 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.29, allocations: 0 / 1.245 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.2902, allocations: 157.6 kB / 1.246 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2902, allocations: 4 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.2906, allocations: 47.92 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.2906, allocations: 0 / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.2906, allocations: 0 / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.2919, allocations: 1.404 MB / 1.247 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2919, allocations: 3.984 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.2921, allocations: 69.14 kB / 1.247 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.2921, allocations: 85.2 kB / 1.247 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.2922, allocations: 7.938 kB / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.889e-05/0.2922, allocations: 3.984 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.2922, allocations: 4 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-06/0.2922, allocations: 0 / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.128e-05/0.2923, allocations: 79.28 kB / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2923, allocations: 0 / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001921/0.2925, allocations: 0 / 1.247 GB, free: 3.762 MB / 0.9981 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.000452/0.2929, allocations: 0.6163 MB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004708/0.2934, allocations: 67.91 kB / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2934, allocations: 0 / 1.248 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.2937, allocations: 39.89 kB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.2938, allocations: 0 / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.2942, allocations: 118.6 kB / 1.248 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2945, allocations: 0.6729 MB / 1.249 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.563e-05/0.2945, allocations: 0 / 1.249 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.2945, allocations: 19.42 kB / 1.249 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.2945, allocations: 0 / 1.249 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.3169, allocations: 1.295 MB / 1.25 GB, free: 0.9883 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.15, allocations: 10.64 kB / 1.25 GB, free: 0.9805 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_PowerLinearized.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches