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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004409/0.004409, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001199/0.001199, allocations: 194.5 kB / 16.67 MB, free: 5.969 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.737/2.737, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 70.31 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2965, allocations: 162.3 MB / 1.242 GB, free: 8.867 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001656/0.2982, allocations: 0.6224 MB / 1.243 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006739/0.2989, allocations: 347.1 kB / 1.243 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.2989, allocations: 3.938 kB / 1.243 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.299, allocations: 0 / 1.243 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.299, allocations: 3.938 kB / 1.243 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.2994, allocations: 115.7 kB / 1.243 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.977e-05/0.2995, allocations: 23.98 kB / 1.243 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.511e-05/0.2996, allocations: 7.984 kB / 1.243 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.031e-05/0.2996, allocations: 7.938 kB / 1.243 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.079e-05/0.2996, allocations: 15.97 kB / 1.243 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.258e-05/0.2997, allocations: 4 kB / 1.243 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003601/0.3, allocations: 271.7 kB / 1.243 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.673e-05/0.3001, allocations: 7.922 kB / 1.243 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.3001, allocations: 11.94 kB / 1.243 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.3003, allocations: 103.9 kB / 1.243 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3003, allocations: 3.938 kB / 1.243 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3003, allocations: 0 / 1.243 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.3003, allocations: 4 kB / 1.243 GB, free: 7.332 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004061/0.3007, allocations: 367.1 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.3007, allocations: 8.031 kB / 1.244 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.3008, allocations: 42.73 kB / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.201e-05/0.3008, allocations: 0.9375 kB / 1.244 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.301, allocations: 180.3 kB / 1.244 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.301, allocations: 384 / 1.244 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.301, allocations: 4.375 kB / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.3012, allocations: 54.25 kB / 1.244 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3012, allocations: 3.938 kB / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.3012, allocations: 0 / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3012, allocations: 0 / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.978e-05/0.3013, allocations: 23.92 kB / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.3014, allocations: 169.6 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.3016, allocations: 54.56 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.7e-05/0.3016, allocations: 32.84 kB / 1.244 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000679/0.3023, allocations: 457.4 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3023, allocations: 38.55 kB / 1.245 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.3024, allocations: 4 kB / 1.245 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.00121/0.3036, allocations: 0.5956 MB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.3036, allocations: 51.41 kB / 1.245 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.4e-05/0.3037, allocations: 93.86 kB / 1.246 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.3037, allocations: 33.7 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.3038, allocations: 84.08 kB / 1.246 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.3038, allocations: 39.64 kB / 1.246 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.3039, allocations: 33.7 kB / 1.246 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.304, allocations: 314.8 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.976e-05/0.304, allocations: 19.98 kB / 1.246 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/0.3041, allocations: 27.25 kB / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.67e-05/0.3042, allocations: 52.84 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.3042, allocations: 4 kB / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001528/0.3043, allocations: 101.6 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3044, allocations: 4 kB / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.3044, allocations: 0 / 1.246 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3044, allocations: 4 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.531e-05/0.3045, allocations: 19.98 kB / 1.246 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3045, allocations: 0 / 1.246 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.029e-05/0.3045, allocations: 0 / 1.246 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.3045, allocations: 8 kB / 1.246 GB, free: 4.043 MB / 0.9669 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.579e-05/0.3046, allocations: 122.3 kB / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.3047, allocations: 19.88 kB / 1.246 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.3048, allocations: 97.77 kB / 1.246 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3049, allocations: 3.984 kB / 1.246 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3049, allocations: 4 kB / 1.246 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3049, allocations: 96 / 1.246 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.3053, allocations: 358.4 kB / 1.247 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3053, allocations: 0 / 1.247 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.3054, allocations: 23.98 kB / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3054, allocations: 0 / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.3054, allocations: 4 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3054, allocations: 0 / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3054, allocations: 0 / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.3057, allocations: 227.6 kB / 1.247 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.039e-05/0.3058, allocations: 93.08 kB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.3058, allocations: 0 / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.732e-05/0.3059, allocations: 8 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.3059, allocations: 8.047 kB / 1.247 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3059, allocations: 4 kB / 1.247 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.782e-05/0.3059, allocations: 79.28 kB / 1.247 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3059, allocations: 0 / 1.247 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002567/0.3062, allocations: 43.88 kB / 1.247 GB, free: 2.859 MB / 0.9669 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.0006464/0.3068, allocations: 0.7944 MB / 1.248 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001355/0.307, allocations: 63.97 kB / 1.248 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.307, allocations: 0 / 1.248 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.368e-05/0.3071, allocations: 39.86 kB / 1.248 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.3073, allocations: 10.03 kB / 1.248 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.3085, allocations: 1.395 MB / 1.25 GB, free: 472 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3088, allocations: 0.6885 MB / 1.25 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.869e-05/0.3089, allocations: 15.94 kB / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.252e-05/0.3089, allocations: 15.44 kB / 1.25 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3089, allocations: 0 / 1.25 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2627/0.5716, allocations: 2.504 MB / 1.253 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.799/9.37, allocations: 4.922 kB / 1.253 GB, free: 13.36 MB / 0.9825 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=400 --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