Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.009096/0.009096, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001858/0.001858, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.752/2.752, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 64.12 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2966, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001625/0.2983, allocations: 0.5925 MB / 1.208 GB, free: 9.555 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006732/0.299, allocations: 342.8 kB / 1.208 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.959e-05/0.299, allocations: 0 / 1.208 GB, free: 9.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.798e-05/0.299, allocations: 3.938 kB / 1.208 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 1.813e-05/0.299, allocations: 0 / 1.208 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.2995, allocations: 117.5 kB / 1.208 GB, free: 9.102 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.023e-05/0.2996, allocations: 11.98 kB / 1.208 GB, free: 9.09 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.783e-05/0.2996, allocations: 0 / 1.208 GB, free: 9.09 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.792e-05/0.2997, allocations: 11.98 kB / 1.208 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.57e-05/0.2997, allocations: 3.938 kB / 1.208 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.2997, allocations: 0 / 1.208 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.3001, allocations: 279.6 kB / 1.209 GB, free: 8.801 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.3001, allocations: 4 kB / 1.209 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.761e-05/0.3001, allocations: 4 kB / 1.209 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.3003, allocations: 99.77 kB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3003, allocations: 0 / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3003, allocations: 0 / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.3004, allocations: 0 / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003506/0.3007, allocations: 343.6 kB / 1.209 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3008, allocations: 12.62 kB / 1.209 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.027e-05/0.3008, allocations: 30.75 kB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.951e-05/0.3008, allocations: 4.844 kB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.301, allocations: 172.6 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.301, allocations: 384 / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.913e-05/0.301, allocations: 384 / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.523e-05/0.3011, allocations: 34.27 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3011, allocations: 7.922 kB / 1.209 GB, free: 8 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.3011, allocations: 4 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3011, allocations: 0 / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.337e-05/0.3012, allocations: 11.92 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.3013, allocations: 149.7 kB / 1.209 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.743e-05/0.3014, allocations: 26.53 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.778e-05/0.3014, allocations: 12.86 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007131/0.3021, allocations: 457.5 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.3021, allocations: 38.55 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3022, allocations: 0 / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005098/0.3027, allocations: 254.2 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.3027, allocations: 51.41 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.783e-05/0.3028, allocations: 101.8 kB / 1.21 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.3028, allocations: 25.7 kB / 1.21 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.3028, allocations: 80.14 kB / 1.21 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.3029, allocations: 7.906 kB / 1.21 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.3029, allocations: 22.05 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.303, allocations: 322.8 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.915e-05/0.303, allocations: 4 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.846e-05/0.3031, allocations: 17.7 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.302e-05/0.3031, allocations: 29.72 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.3031, allocations: 0 / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.992e-05/0.3032, allocations: 53.64 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3033, allocations: 15.92 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3033, allocations: 0 / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.3033, allocations: 0 / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.614e-05/0.3033, allocations: 4 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.3034, allocations: 4 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.818e-05/0.3034, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.3034, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 6.544e-05/0.3035, allocations: 117.8 kB / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.5e-05/0.3035, allocations: 3.938 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.3036, allocations: 61.08 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3036, allocations: 0 / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3037, allocations: 0 / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3037, allocations: 4 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.3038, allocations: 153.7 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3038, allocations: 0 / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.126e-05/0.3038, allocations: 4 kB / 1.211 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3038, allocations: 7.938 kB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.3039, allocations: 3.938 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3039, allocations: 0 / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3039, allocations: 3.938 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.304, allocations: 85.05 kB / 1.211 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.3041, allocations: 81.28 kB / 1.211 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.082e-05/0.3041, allocations: 0 / 1.211 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.738e-05/0.3041, allocations: 0 / 1.211 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.3041, allocations: 12.08 kB / 1.211 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3042, allocations: 0 / 1.211 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.336e-05/0.3042, allocations: 83.27 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3042, allocations: 0 / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002154/0.3044, allocations: 20 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0004692/0.3049, allocations: 0.6476 MB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.899e-05/0.305, allocations: 19.98 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.305, allocations: 0 / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.844e-05/0.305, allocations: 7.938 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.3052, allocations: 4 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009521/0.3061, allocations: 1.143 MB / 1.213 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.3064, allocations: 0.6768 MB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.3064, allocations: 11.95 kB / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.52e-05/0.3064, allocations: 7.438 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of SimCode: time 3.11e-07/0.3064, allocations: 0 / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01875/0.3252, allocations: 1.741 MB / 1.216 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.514/7.839, allocations: 11.92 kB / 1.216 GB, free: 1.055 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y