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.005806/0.005806, allocations: 96.84 kB / 15.73 MB, free: 6.055 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.001424/0.001425, allocations: 192.8 kB / 16.67 MB, free: 5.965 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.624/2.624, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 71.89 kB / 1.054 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.767/0.7683, allocations: 157.4 MB / 1.207 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001683/0.7701, allocations: 0.6239 MB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00074/0.7708, allocations: 346.8 kB / 1.208 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.424e-05/0.7709, allocations: 0 / 1.208 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.46e-05/0.7709, allocations: 3.938 kB / 1.208 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.823e-05/0.7709, allocations: 0 / 1.208 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.7714, allocations: 119.6 kB / 1.208 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.103e-05/0.7715, allocations: 19.98 kB / 1.208 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.7716, allocations: 7.984 kB / 1.208 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.89e-05/0.7716, allocations: 11.94 kB / 1.208 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.017e-05/0.7717, allocations: 19.91 kB / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.7717, allocations: 0 / 1.208 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003958/0.7721, allocations: 267.7 kB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.649e-05/0.7721, allocations: 11.98 kB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.7721, allocations: 11.94 kB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.7724, allocations: 107.7 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7724, allocations: 0 / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7724, allocations: 4 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.7724, allocations: 0 / 1.209 GB, free: 11.97 MB / 0.9356 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.0004506/0.7728, allocations: 365.7 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.7729, allocations: 8.031 kB / 1.209 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.7729, allocations: 38.69 kB / 1.209 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.458e-05/0.773, allocations: 8.922 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.7731, allocations: 168.3 kB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.7731, allocations: 8.375 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.7732, allocations: 384 / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.7733, allocations: 50.25 kB / 1.209 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.7733, allocations: 7.844 kB / 1.209 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.7733, allocations: 8 kB / 1.209 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.7733, allocations: 0 / 1.209 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.366e-05/0.7734, allocations: 15.98 kB / 1.209 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.7736, allocations: 177.6 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.7737, allocations: 50.56 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.324e-05/0.7737, allocations: 32.84 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/0.7745, allocations: 457.5 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.7745, allocations: 34.56 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.7745, allocations: 0 / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001337/0.7759, allocations: 0.5878 MB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.7759, allocations: 51.41 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.575e-05/0.776, allocations: 109.8 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.776, allocations: 29.7 kB / 1.211 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.777e-05/0.776, allocations: 84.14 kB / 1.211 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.7761, allocations: 35.45 kB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.344e-05/0.7761, allocations: 25.72 kB / 1.211 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.7763, allocations: 318.8 kB / 1.211 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.593e-05/0.7763, allocations: 23.98 kB / 1.211 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.499e-05/0.7763, allocations: 16 kB / 1.211 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.7765, allocations: 68.34 kB / 1.211 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.7765, allocations: 0 / 1.211 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000163/0.7766, allocations: 97.53 kB / 1.212 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.7767, allocations: 10.34 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.7767, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.7767, allocations: 3.938 kB / 1.212 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.7768, allocations: 19.98 kB / 1.212 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.7768, allocations: 7.938 kB / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.332e-05/0.7768, allocations: 0 / 1.212 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.7769, allocations: 8 kB / 1.212 GB, free: 8.684 MB / 0.9356 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.908e-05/0.777, allocations: 117.8 kB / 1.212 GB, free: 8.559 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.777, allocations: 11.84 kB / 1.212 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.7772, allocations: 109.8 kB / 1.212 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.7772, allocations: 3.984 kB / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7772, allocations: 0 / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7772, allocations: 0 / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.7776, allocations: 362.4 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7776, allocations: 3.938 kB / 1.212 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.7778, allocations: 19.98 kB / 1.212 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.7778, allocations: 4 kB / 1.212 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.7778, allocations: 4 kB / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.7778, allocations: 0 / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7778, allocations: 0 / 1.212 GB, free: 7.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.7781, allocations: 223.6 kB / 1.212 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.7782, allocations: 85.09 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.7782, allocations: 4.031 kB / 1.213 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.7783, allocations: 4.062 kB / 1.213 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.7783, allocations: 11.94 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.7783, allocations: 7.984 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.549e-05/0.7784, allocations: 75.28 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7784, allocations: 4 kB / 1.213 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002913/0.7787, allocations: 40 kB / 1.213 GB, free: 7.5 MB / 0.9356 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.0006935/0.7794, allocations: 0.7983 MB / 1.213 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001405/0.7795, allocations: 59.91 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7795, allocations: 4 kB / 1.214 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.899e-05/0.7796, allocations: 31.94 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.7798, allocations: 14.05 kB / 1.214 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.7811, allocations: 1.396 MB / 1.215 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002754/0.7814, allocations: 0.6846 MB / 1.216 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.529e-05/0.7815, allocations: 19.92 kB / 1.216 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.7815, allocations: 19.44 kB / 1.216 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.7815, allocations: 0 / 1.216 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.8012, allocations: 2.497 MB / 1.218 GB, free: 1.992 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.515, allocations: 9.922 kB / 1.218 GB, free: 1.984 MB / 0.9356 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