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.0008957/0.0008957, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005356/0.005356, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.319/1.319, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.611/2.611, allocations: 462.7 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003537, allocations: 17.19 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2968, allocations: 159.6 MB / 1.059 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.000788/0.2976, allocations: 358.7 kB / 1.059 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007219/0.2983, allocations: 374.8 kB / 1.059 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.2984, allocations: 4 kB / 1.059 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.486e-05/0.2984, allocations: 7.938 kB / 1.06 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.203e-05/0.2984, allocations: 0 / 1.06 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.2988, allocations: 79.83 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.99e-05/0.2989, allocations: 23.97 kB / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.332e-05/0.2989, allocations: 0 / 1.06 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.162e-05/0.299, allocations: 19.88 kB / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.015e-05/0.299, allocations: 7.922 kB / 1.06 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.2991, allocations: 8 kB / 1.06 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.2994, allocations: 271.7 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.2994, allocations: 11.97 kB / 1.06 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.41e-05/0.2995, allocations: 33.64 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.2997, allocations: 103.8 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2997, allocations: 0 / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.532e-06/0.2997, allocations: 0 / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2997, allocations: 0 / 1.06 GB, free: 3.613 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.0003992/0.3001, allocations: 355.7 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.3002, allocations: 12.03 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.3002, allocations: 38.75 kB / 1.06 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.3003, allocations: 4.844 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.3004, allocations: 168.4 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.3004, allocations: 384 / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3004, allocations: 8.375 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.3006, allocations: 50.19 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3006, allocations: 3.938 kB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3006, allocations: 8 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3006, allocations: 0 / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.927e-05/0.3007, allocations: 19.98 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.3008, allocations: 165.7 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.705e-05/0.3009, allocations: 54.56 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.348e-05/0.301, allocations: 28.84 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006477/0.3016, allocations: 461.5 kB / 1.061 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.3017, allocations: 38.5 kB / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.3017, allocations: 0 / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001209/0.3029, allocations: 0.603 MB / 1.062 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.3029, allocations: 51.41 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.182e-05/0.303, allocations: 101.8 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.303, allocations: 25.7 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.3031, allocations: 80.14 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.3031, allocations: 43.45 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.3031, allocations: 17.72 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.3032, allocations: 318.8 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.208e-05/0.3033, allocations: 20 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.25e-05/0.3033, allocations: 19.98 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.561e-05/0.3034, allocations: 59.72 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.3034, allocations: 0 / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001452/0.3036, allocations: 105.5 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3036, allocations: 8 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3036, allocations: 4.094 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.3036, allocations: 3.938 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.3037, allocations: 23.98 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.3038, allocations: 0 / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.209e-05/0.3038, allocations: 3.938 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.3038, allocations: 4 kB / 1.063 GB, free: 348 kB / 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 7.269e-05/0.3039, allocations: 113.8 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.3039, allocations: 7.938 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.3041, allocations: 109.6 kB / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.3041, allocations: 0 / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.3041, allocations: 0 / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3041, allocations: 0 / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.3045, allocations: 358.4 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3045, allocations: 0 / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.3046, allocations: 23.98 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3046, allocations: 0 / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3046, allocations: 4 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.3046, allocations: 4 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3046, allocations: 4 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.3049, allocations: 223.6 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.305, allocations: 93.03 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.305, allocations: 0 / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.956e-05/0.3051, allocations: 3.984 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.3051, allocations: 4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.3051, allocations: 8 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.233e-05/0.3051, allocations: 87.33 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3051, allocations: 0 / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002607/0.3054, allocations: 40 kB / 1.064 GB, free: 15.17 MB / 0.8262 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.0005853/0.306, allocations: 0.7983 MB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001267/0.3061, allocations: 51.98 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3061, allocations: 8.062 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.816e-05/0.3062, allocations: 39.86 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.3064, allocations: 4 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.3076, allocations: 1.417 MB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.3079, allocations: 0.6848 MB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.871e-05/0.3079, allocations: 16.3 kB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.877e-05/0.308, allocations: 19.42 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.308, allocations: 0 / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02797/0.3359, allocations: 2.262 MB / 1.069 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.3362, allocations: 236.5 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.147, allocations: 3.859 kB / 1.069 GB, free: 9.66 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