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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001312/0.001311, allocations: 108 kB / 15.6 MB, free: 132 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.001313/0.001313, allocations: 192 kB / 16.53 MB, free: 6.391 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.527/2.527, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 64.88 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2566, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001798/0.2585, allocations: 0.6282 MB / 1.054 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000623/0.2591, allocations: 362.7 kB / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.289e-05/0.2591, allocations: 0 / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.31e-05/0.2592, allocations: 0 / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.425e-05/0.2592, allocations: 3.938 kB / 1.054 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.2597, allocations: 119.5 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.945e-05/0.2597, allocations: 23.92 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.53e-05/0.2598, allocations: 0 / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.435e-05/0.2598, allocations: 15.92 kB / 1.054 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.617e-05/0.2598, allocations: 15.92 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.2599, allocations: 4 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003392/0.2602, allocations: 271.6 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.2602, allocations: 4 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.2603, allocations: 15.92 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.2604, allocations: 103.8 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2604, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2605, allocations: 4 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2605, allocations: 0 / 1.054 GB, free: 6.695 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.0003693/0.2608, allocations: 363.7 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2609, allocations: 8.625 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.567e-05/0.2609, allocations: 34.75 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.804e-05/0.261, allocations: 4.844 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.252e-05/0.2611, allocations: 164.4 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2611, allocations: 4.375 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.2611, allocations: 4.375 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.2612, allocations: 58.17 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2612, allocations: 7.922 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.2613, allocations: 4 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2613, allocations: 0 / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.712e-05/0.2613, allocations: 19.98 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.2615, allocations: 165.7 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.684e-05/0.2616, allocations: 50.56 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.947e-05/0.2616, allocations: 36.78 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006388/0.2623, allocations: 465.4 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.2623, allocations: 42.56 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.2623, allocations: 0 / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001169/0.2635, allocations: 0.5839 MB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2635, allocations: 55.41 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.4e-05/0.2636, allocations: 105.8 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.2636, allocations: 25.7 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.2636, allocations: 84.14 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/0.2637, allocations: 31.47 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.2637, allocations: 29.7 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.937e-05/0.2638, allocations: 314.8 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.774e-05/0.2639, allocations: 24.08 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.573e-05/0.2639, allocations: 23.92 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.369e-05/0.264, allocations: 67.92 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.264, allocations: 0 / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000154/0.2642, allocations: 105.5 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.2642, allocations: 4 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2642, allocations: 0 / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.2642, allocations: 0 / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.69e-05/0.2643, allocations: 20 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.2643, allocations: 3.984 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.367e-05/0.2644, allocations: 0 / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/0.2644, allocations: 7.938 kB / 1.057 GB, free: 3.414 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 7.141e-05/0.2645, allocations: 127.3 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.2645, allocations: 7.938 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.2647, allocations: 97.64 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2647, allocations: 3.984 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2647, allocations: 0 / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.2647, allocations: 0 / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.265, allocations: 366.5 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.265, allocations: 0 / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.921e-05/0.2652, allocations: 20 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.2652, allocations: 4.188 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2652, allocations: 3.984 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2652, allocations: 0 / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2652, allocations: 0 / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002296/0.2654, allocations: 231.4 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.2655, allocations: 93.03 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.2655, allocations: 0 / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.169e-05/0.2656, allocations: 8.062 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.7e-05/0.2656, allocations: 7.984 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.2656, allocations: 4 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.848e-05/0.2657, allocations: 79.28 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2657, allocations: 0 / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002615/0.2659, allocations: 47.92 kB / 1.058 GB, free: 2.23 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.0005475/0.2665, allocations: 0.8021 MB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.2666, allocations: 59.92 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2666, allocations: 0 / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.758e-05/0.2667, allocations: 35.92 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.2669, allocations: 13.5 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.268, allocations: 1.392 MB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.2682, allocations: 0.6924 MB / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.677e-05/0.2683, allocations: 4 kB / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.2683, allocations: 15.44 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2683, allocations: 4 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.113/1.381, allocations: 2.445 MB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/12.14, allocations: 13.77 kB / 1.064 GB, free: 12.76 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