Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.001344/0.001344, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001488/0.001488, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.362/1.362, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.656/2.656, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 64.36 kB / 0.8985 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2761, allocations: 157.4 MB / 1.052 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001782/0.2779, allocations: 0.6853 MB / 1.053 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007042/0.2786, allocations: 382.8 kB / 1.053 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.2787, allocations: 0 / 1.053 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.2787, allocations: 7.938 kB / 1.053 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.561e-05/0.2787, allocations: 0 / 1.053 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.2791, allocations: 82.58 kB / 1.053 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.957e-05/0.2792, allocations: 23.92 kB / 1.053 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.2792, allocations: 0 / 1.053 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.186e-05/0.2793, allocations: 19.92 kB / 1.053 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.741e-05/0.2793, allocations: 15.92 kB / 1.053 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.2793, allocations: 0 / 1.053 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003534/0.2797, allocations: 271.6 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.575e-05/0.2797, allocations: 7.938 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.2798, allocations: 15.92 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.2799, allocations: 99.78 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.28, allocations: 4 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.01e-07/0.28, allocations: 0 / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.28, allocations: 0 / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003856/0.2804, allocations: 359.8 kB / 1.054 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2804, allocations: 8.031 kB / 1.054 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.2804, allocations: 38.73 kB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.2805, allocations: 4.844 kB / 1.054 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2806, allocations: 168.4 kB / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.2806, allocations: 384 / 1.054 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.2807, allocations: 12.38 kB / 1.054 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.2808, allocations: 54.16 kB / 1.054 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2808, allocations: 7.938 kB / 1.054 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.2808, allocations: 7.984 kB / 1.054 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2808, allocations: 0 / 1.054 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.136e-05/0.2809, allocations: 16 kB / 1.054 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.2811, allocations: 161.7 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.2812, allocations: 62.5 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.233e-05/0.2812, allocations: 28.84 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006662/0.2819, allocations: 457.5 kB / 1.055 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.2819, allocations: 46.48 kB / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.2819, allocations: 0 / 1.055 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001246/0.2832, allocations: 0.5839 MB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.2832, allocations: 55.41 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.799e-05/0.2833, allocations: 101.9 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.2833, allocations: 25.7 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.373e-05/0.2833, allocations: 84.14 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.2834, allocations: 35.45 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.2834, allocations: 29.8 kB / 1.056 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.2835, allocations: 318.8 kB / 1.056 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.389e-05/0.2836, allocations: 27.98 kB / 1.056 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.2836, allocations: 16 kB / 1.056 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.977e-05/0.2837, allocations: 64.78 kB / 1.056 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.2837, allocations: 0 / 1.056 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001616/0.2839, allocations: 110.6 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.2839, allocations: 4 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2839, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.284, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2841, allocations: 23.98 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.2841, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.358e-05/0.2841, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.2841, allocations: 4 kB / 1.057 GB, free: 3.316 MB / 0.8106 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 (13): * Single equations (assignments): 13 * 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 8.478e-05/0.2842, allocations: 121.8 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.2842, allocations: 7.922 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.2844, allocations: 101.9 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2845, allocations: 0 / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2845, allocations: 3.984 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2845, allocations: 0 / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003972/0.2849, allocations: 366.3 kB / 1.057 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2849, allocations: 4 kB / 1.057 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.285, allocations: 23.98 kB / 1.057 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.285, allocations: 4 kB / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.285, allocations: 0 / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.285, allocations: 0 / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.285, allocations: 0 / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.2853, allocations: 223.3 kB / 1.057 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.2854, allocations: 93.03 kB / 1.057 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.2854, allocations: 64 / 1.057 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.161e-05/0.2855, allocations: 4 kB / 1.057 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.195e-05/0.2855, allocations: 7.984 kB / 1.057 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.2855, allocations: 8 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.414e-05/0.2856, allocations: 83.22 kB / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2856, allocations: 0 / 1.058 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002734/0.2858, allocations: 43.98 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0006306/0.2865, allocations: 0.7982 MB / 1.058 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001349/0.2866, allocations: 62.84 kB / 1.058 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2866, allocations: 0 / 1.058 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.934e-05/0.2867, allocations: 35.92 kB / 1.058 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.2869, allocations: 4 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.2881, allocations: 1.403 MB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.2884, allocations: 0.6888 MB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.288e-05/0.2884, allocations: 8 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.2885, allocations: 19.42 kB / 1.061 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2885, allocations: 0 / 1.061 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.3005, allocations: 2.33 MB / 1.063 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.3007, allocations: 243.9 kB / 1.063 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.055, allocations: 2.953 kB / 1.063 GB, free: 12.55 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,n,time,x,y,y_comp