Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_11_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_11_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.001462/0.001462, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 196 kB / 16.53 MB, free: 6.664 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.626/2.626, allocations: 469.8 MB / 0.7424 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 69.17 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2889, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001936/0.2908, allocations: 0.6271 MB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.2915, allocations: 350.7 kB / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.8e-05/0.2916, allocations: 4 kB / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.2916, allocations: 0 / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.99e-05/0.2917, allocations: 3.938 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.2922, allocations: 112.3 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.578e-05/0.2923, allocations: 19.98 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.2923, allocations: 15.91 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.427e-05/0.2923, allocations: 8 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.115e-05/0.2924, allocations: 11.92 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.2924, allocations: 4 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000434/0.2929, allocations: 271.7 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.2929, allocations: 11.98 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.2929, allocations: 11.92 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.2931, allocations: 107.7 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2931, allocations: 0 / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2931, allocations: 0 / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.2931, allocations: 0 / 1.066 GB, free: 12.65 MB / 0.8262 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.0004416/0.2936, allocations: 359.7 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2936, allocations: 12.03 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.2937, allocations: 34.75 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.2937, allocations: 8.844 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.2939, allocations: 172.3 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.2939, allocations: 4.375 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.166e-05/0.2939, allocations: 8.375 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.294, allocations: 46.23 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2941, allocations: 3.938 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.2941, allocations: 4 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-06/0.2941, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.519e-05/0.2942, allocations: 27.92 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.2943, allocations: 165.6 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001104/0.2945, allocations: 62.48 kB / 1.066 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.236e-05/0.2945, allocations: 24.86 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007122/0.2952, allocations: 461.5 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.2953, allocations: 34.56 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.2953, allocations: 0 / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001255/0.2965, allocations: 0.5935 MB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.2966, allocations: 51.41 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.307e-05/0.2967, allocations: 101.8 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.2967, allocations: 29.7 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.2967, allocations: 80.14 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.2968, allocations: 39.45 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.2968, allocations: 25.81 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.297, allocations: 326.8 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.736e-05/0.297, allocations: 16 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.84e-05/0.297, allocations: 24.61 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.453e-05/0.2971, allocations: 62.47 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2971, allocations: 4 kB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001632/0.2973, allocations: 97.47 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.2973, allocations: 8 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2973, allocations: 0 / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2974, allocations: 4 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.972e-05/0.2975, allocations: 23.92 kB / 1.068 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2975, allocations: 4 kB / 1.068 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.395e-05/0.2975, allocations: 4 kB / 1.068 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2975, allocations: 4 kB / 1.068 GB, free: 9.363 MB / 0.8262 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.447e-05/0.2976, allocations: 117.8 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.2976, allocations: 7.938 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.2978, allocations: 105.5 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2979, allocations: 8.188 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2979, allocations: 0 / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2979, allocations: 3.984 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.2983, allocations: 358.4 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2983, allocations: 0 / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.2984, allocations: 19.98 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2984, allocations: 0 / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.2984, allocations: 8 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2984, allocations: 0 / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2984, allocations: 4 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.2987, allocations: 220.6 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.2987, allocations: 85 kB / 1.069 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.2988, allocations: 8.031 kB / 1.069 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.006e-05/0.2989, allocations: 3.984 kB / 1.069 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.2989, allocations: 4 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.2989, allocations: 4 kB / 1.069 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.078e-05/0.2989, allocations: 91.27 kB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2989, allocations: 4 kB / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000258/0.2992, allocations: 44 kB / 1.069 GB, free: 8.184 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.0006339/0.2998, allocations: 0.7913 MB / 1.07 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.3, allocations: 68.02 kB / 1.07 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3, allocations: 8 kB / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.694e-05/0.3001, allocations: 28 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.3003, allocations: 14.17 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.3015, allocations: 1.386 MB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.3018, allocations: 0.6846 MB / 1.072 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.882e-05/0.3019, allocations: 12 kB / 1.072 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.3019, allocations: 19.42 kB / 1.072 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3019, allocations: 0 / 1.072 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.932/2.234, allocations: 2.447 MB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/16.63, allocations: 7.344 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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