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.008413/0.008413, allocations: 102.1 kB / 15.73 MB, free: 6.035 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.001742/0.001742, allocations: 190.2 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.791/2.791, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3169, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001959/0.3189, allocations: 0.6225 MB / 1.208 GB, free: 9.516 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008007/0.3197, allocations: 342.7 kB / 1.208 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.3198, allocations: 8 kB / 1.208 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.76e-05/0.3198, allocations: 3.938 kB / 1.208 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.899e-05/0.3199, allocations: 0 / 1.208 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005997/0.3205, allocations: 123.5 kB / 1.208 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.266e-05/0.3206, allocations: 27.92 kB / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.417e-05/0.3206, allocations: 0 / 1.208 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.667e-05/0.3207, allocations: 15.92 kB / 1.208 GB, free: 9.004 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.032e-05/0.3207, allocations: 11.94 kB / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.3208, allocations: 4 kB / 1.208 GB, free: 8.988 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004608/0.3212, allocations: 279.6 kB / 1.209 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.051e-05/0.3213, allocations: 4 kB / 1.209 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.3213, allocations: 15.92 kB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.3215, allocations: 99.77 kB / 1.209 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3216, allocations: 4 kB / 1.209 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3216, allocations: 0 / 1.209 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.79e-06/0.3216, allocations: 0 / 1.209 GB, free: 8.594 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.0004868/0.3221, allocations: 367.6 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3221, allocations: 16.62 kB / 1.209 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3222, allocations: 30.75 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.961e-05/0.3222, allocations: 8.938 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.3224, allocations: 160.4 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.3224, allocations: 4.375 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.3224, allocations: 8.266 kB / 1.209 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.3225, allocations: 50.25 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3226, allocations: 3.938 kB / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.3226, allocations: 0 / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.3226, allocations: 4 kB / 1.209 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.281e-05/0.3227, allocations: 23.92 kB / 1.209 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000195/0.3229, allocations: 161.7 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.323, allocations: 62.55 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.709e-05/0.323, allocations: 25.09 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007181/0.3238, allocations: 465.4 kB / 1.21 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.3238, allocations: 30.56 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3238, allocations: 0 / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001425/0.3252, allocations: 0.6031 MB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.3253, allocations: 55.34 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.901e-05/0.3254, allocations: 97.84 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.3254, allocations: 29.7 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.743e-05/0.3254, allocations: 88.12 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.537e-05/0.3255, allocations: 39.36 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.384e-05/0.3255, allocations: 29.72 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3257, allocations: 318.8 kB / 1.211 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.28e-05/0.3257, allocations: 20 kB / 1.211 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.381e-05/0.3257, allocations: 29.98 kB / 1.211 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.728e-05/0.3258, allocations: 48.86 kB / 1.211 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.3258, allocations: 0 / 1.211 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001593/0.326, allocations: 103.3 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.326, allocations: 8 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.326, allocations: 4 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3261, allocations: 4 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3262, allocations: 19.98 kB / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3262, allocations: 0 / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.733e-05/0.3262, allocations: 8 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3262, allocations: 3.938 kB / 1.212 GB, free: 5.301 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.174e-05/0.3263, allocations: 113.8 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.3264, allocations: 11.84 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.3266, allocations: 109.6 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3266, allocations: 8 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3266, allocations: 0 / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3266, allocations: 0 / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003909/0.327, allocations: 362.3 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.327, allocations: 0 / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.3271, allocations: 16 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.3271, allocations: 3.984 kB / 1.212 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.3271, allocations: 4 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3272, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3272, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.3274, allocations: 223.2 kB / 1.212 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.335e-05/0.3275, allocations: 89.12 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.3275, allocations: 4 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.3276, allocations: 4 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.994e-05/0.3276, allocations: 7.984 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.3276, allocations: 4 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.349e-05/0.3277, allocations: 75.28 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3277, allocations: 4.062 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002806/0.328, allocations: 51.98 kB / 1.213 GB, free: 4.121 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.0006412/0.3286, allocations: 0.7959 MB / 1.213 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001422/0.3288, allocations: 51.98 kB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3288, allocations: 0 / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.882e-05/0.3288, allocations: 43.98 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.3291, allocations: 4.766 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3305, allocations: 1.393 MB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.3308, allocations: 0.6846 MB / 1.216 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.263e-05/0.3308, allocations: 7.938 kB / 1.216 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.3309, allocations: 19.42 kB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.3309, allocations: 7.938 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.3557, allocations: 2.515 MB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.938, allocations: 16.09 kB / 1.218 GB, free: 14.6 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=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