Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_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.009111/0.009111, allocations: 97.62 kB / 15.73 MB, free: 6.035 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.002346/0.002346, allocations: 201.4 kB / 16.68 MB, free: 5.961 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.91/2.91, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.91 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2864, allocations: 151.6 MB / 1.166 GB, free: 7.246 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001688/0.2881, allocations: 0.5845 MB / 1.167 GB, free: 6.66 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006507/0.2888, allocations: 323.2 kB / 1.167 GB, free: 6.344 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.807e-05/0.2888, allocations: 0 / 1.167 GB, free: 6.344 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.739e-05/0.2889, allocations: 3.938 kB / 1.167 GB, free: 6.34 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.565e-06/0.2889, allocations: 0 / 1.167 GB, free: 6.34 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.2894, allocations: 111.7 kB / 1.167 GB, free: 6.23 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 4.118e-05/0.2895, allocations: 0 / 1.167 GB, free: 6.23 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.2895, allocations: 8 kB / 1.167 GB, free: 6.223 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 1.217e-05/0.2895, allocations: 0 / 1.167 GB, free: 6.223 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 2.183e-05/0.2896, allocations: 3.938 kB / 1.167 GB, free: 6.219 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.2896, allocations: 0 / 1.167 GB, free: 6.219 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004265/0.29, allocations: 271.7 kB / 1.167 GB, free: 5.953 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.251e-05/0.29, allocations: 7.984 kB / 1.167 GB, free: 5.945 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.2901, allocations: 3.984 kB / 1.167 GB, free: 5.941 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.2902, allocations: 88.02 kB / 1.168 GB, free: 5.855 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2903, allocations: 0 / 1.168 GB, free: 5.855 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2903, allocations: 3.938 kB / 1.168 GB, free: 5.852 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.738e-06/0.2903, allocations: 0 / 1.168 GB, free: 5.852 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003338/0.2906, allocations: 335.3 kB / 1.168 GB, free: 5.473 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2907, allocations: 12.03 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.898e-05/0.2907, allocations: 30.75 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.2908, allocations: 0.9375 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.479e-05/0.2908, allocations: 160.4 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-06/0.2909, allocations: 4.375 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.2909, allocations: 4.375 kB / 1.168 GB, free: 5.219 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.736e-05/0.291, allocations: 26.27 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.291, allocations: 3.938 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.963e-06/0.291, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.291, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.6e-05/0.291, allocations: 19.86 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001202/0.2912, allocations: 141.7 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 3.722e-05/0.2912, allocations: 18.58 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.692e-05/0.2912, allocations: 8.953 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005136/0.2917, allocations: 425.5 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.2918, allocations: 30.56 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.2918, allocations: 0 / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001523/0.2919, allocations: 53.52 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.292, allocations: 51.41 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.246e-05/0.292, allocations: 89.86 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.292, allocations: 29.7 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.013e-05/0.2921, allocations: 80.14 kB / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2921, allocations: 0 / 1.169 GB, free: 4.055 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.2921, allocations: 9.719 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.2922, allocations: 315 kB / 1.169 GB, free: 3.723 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.2922, allocations: 4 kB / 1.169 GB, free: 3.719 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-06/0.2922, allocations: 7.938 kB / 1.169 GB, free: 3.711 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.924e-05/0.2923, allocations: 12.84 kB / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2923, allocations: 0 / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.342e-05/0.2924, allocations: 33.64 kB / 1.169 GB, free: 3.656 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2924, allocations: 4 kB / 1.169 GB, free: 3.652 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2924, allocations: 7.938 kB / 1.169 GB, free: 3.645 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2924, allocations: 0 / 1.169 GB, free: 3.645 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.008e-05/0.2925, allocations: 8.078 kB / 1.169 GB, free: 3.637 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.2925, allocations: 0 / 1.169 GB, free: 3.637 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.968e-06/0.2925, allocations: 0 / 1.169 GB, free: 3.637 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.2925, allocations: 4 kB / 1.169 GB, free: 3.633 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 (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.732e-05/0.2926, allocations: 109.8 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.2926, allocations: 0 / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.2927, allocations: 40.77 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2927, allocations: 4.031 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2927, allocations: 7.938 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2927, allocations: 0 / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/0.2928, allocations: 145.7 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2928, allocations: 7.938 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.68e-05/0.2929, allocations: 4 kB / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.2929, allocations: 0 / 1.17 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.2929, allocations: 3.938 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2929, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2929, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.293, allocations: 65.12 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.2931, allocations: 77.11 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.2931, allocations: 3.938 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-06/0.2931, allocations: 0 / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.691e-05/0.2931, allocations: 0 / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.2931, allocations: 0 / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.27e-05/0.2932, allocations: 75.28 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2932, allocations: 4 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002208/0.2934, allocations: 15.97 kB / 1.17 GB, free: 2.977 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 (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.0004446/0.2938, allocations: 0.6124 MB / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.627e-05/0.2939, allocations: 8 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2939, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.658e-06/0.294, allocations: 12.03 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.2941, allocations: 0 / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003094/0.2944, allocations: 102.5 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.2947, allocations: 0.6806 MB / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.106e-05/0.2947, allocations: 3.984 kB / 1.171 GB, free: 1.461 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.965e-05/0.2947, allocations: 7.438 kB / 1.171 GB, free: 1.453 MB / 0.92 GB Notification: Performance of SimCode: time 3.91e-07/0.2947, allocations: 0 / 1.171 GB, free: 1.453 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.3158, allocations: 1.191 MB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.695/8.011, allocations: 3.953 kB / 1.173 GB, free: 368 kB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches