Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",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.007361/0.007361, allocations: 100.9 kB / 15.73 MB, free: 6 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.001929/0.001929, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.9/2.9, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 67.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2788, allocations: 162.2 MB / 1.242 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.00163/0.2805, allocations: 0.5835 MB / 1.242 GB, free: 9.621 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006415/0.2811, allocations: 330.8 kB / 1.242 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.457e-05/0.2812, allocations: 4 kB / 1.242 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.292e-05/0.2812, allocations: 0 / 1.242 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-06/0.2812, allocations: 0 / 1.242 GB, free: 9.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.2816, allocations: 95.7 kB / 1.242 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 3.666e-05/0.2817, allocations: 8 kB / 1.242 GB, free: 9.191 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.2817, allocations: 7.984 kB / 1.243 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.099e-05/0.2817, allocations: 0 / 1.243 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.662e-05/0.2818, allocations: 0 / 1.243 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.2818, allocations: 4 kB / 1.243 GB, free: 9.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004383/0.2822, allocations: 271.7 kB / 1.243 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.845e-06/0.2822, allocations: 0 / 1.243 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.342e-05/0.2823, allocations: 0 / 1.243 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.2824, allocations: 87.78 kB / 1.243 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2825, allocations: 0 / 1.243 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.587e-06/0.2825, allocations: 0 / 1.243 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.2825, allocations: 3.938 kB / 1.243 GB, free: 8.824 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003286/0.2828, allocations: 335.3 kB / 1.243 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.2828, allocations: 8.031 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.2829, allocations: 38.69 kB / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.209e-05/0.2829, allocations: 4.922 kB / 1.243 GB, free: 8.387 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.283, allocations: 160.4 kB / 1.243 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.2831, allocations: 384 / 1.243 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.2831, allocations: 4.375 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.833e-05/0.2831, allocations: 30.27 kB / 1.243 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2832, allocations: 3.938 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.841e-06/0.2832, allocations: 0 / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2832, allocations: 0 / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.893e-05/0.2832, allocations: 8 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.2834, allocations: 145.7 kB / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.694e-05/0.2834, allocations: 18.52 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.357e-05/0.2834, allocations: 8.953 kB / 1.244 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005194/0.2839, allocations: 433.4 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.284, allocations: 30.56 kB / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.284, allocations: 0 / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.2841, allocations: 41.59 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.2842, allocations: 59.33 kB / 1.244 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.558e-05/0.2842, allocations: 89.86 kB / 1.244 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.2843, allocations: 29.7 kB / 1.244 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.286e-05/0.2843, allocations: 80.27 kB / 1.244 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.2843, allocations: 7.938 kB / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.2844, allocations: 9.719 kB / 1.244 GB, free: 7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2845, allocations: 314.8 kB / 1.245 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-06/0.2845, allocations: 4 kB / 1.245 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.361e-06/0.2845, allocations: 0 / 1.245 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.663e-05/0.2845, allocations: 12.86 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.2846, allocations: 0 / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.469e-05/0.2846, allocations: 45.62 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2847, allocations: 8 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2847, allocations: 3.938 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.16e-05/0.2847, allocations: 0 / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.726e-06/0.2847, allocations: 0 / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.2847, allocations: 4 kB / 1.245 GB, free: 6.598 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 (1): * Single equations (assignments): 1 * 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 6.982e-05/0.2848, allocations: 110.4 kB / 1.245 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.2849, allocations: 8.031 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.844e-05/0.2849, allocations: 40.75 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2849, allocations: 4 kB / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.285, allocations: 0 / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.285, allocations: 0 / 1.245 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.2851, allocations: 141.7 kB / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2851, allocations: 7.969 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.578e-05/0.2851, allocations: 7.938 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.2851, allocations: 0 / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2851, allocations: 7.969 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2851, allocations: 0 / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2851, allocations: 0 / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.461e-05/0.2852, allocations: 57.14 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.2853, allocations: 81.09 kB / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.307e-06/0.2853, allocations: 3.938 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-06/0.2853, allocations: 0 / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.915e-06/0.2853, allocations: 0 / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.2853, allocations: 4.031 kB / 1.245 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.505e-05/0.2854, allocations: 83.22 kB / 1.245 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2854, allocations: 0 / 1.245 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001958/0.2856, allocations: 8 kB / 1.245 GB, free: 5.941 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 (1): * Single equations (assignments): 1 * 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.0004458/0.286, allocations: 0.6163 MB / 1.246 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 5.646e-05/0.2861, allocations: 4 kB / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2861, allocations: 0 / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.048e-05/0.2861, allocations: 7.984 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.2862, allocations: 1.406 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.2865, allocations: 114.5 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.2868, allocations: 0.6729 MB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.835e-05/0.2868, allocations: 8.109 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.373e-05/0.2868, allocations: 7.438 kB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.2868, allocations: 0 / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.3072, allocations: 1.191 MB / 1.248 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.73, allocations: 7.938 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches