Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 220.3 kB / 23.05 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.87/2.87, allocations: 476.7 MB / 0.7714 GB, free: 4.305 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 61.66 kB / 1.118 GB, free: 40.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3804, allocations: 170 MB / 1.284 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001992/0.3824, allocations: 0.6192 MB / 1.285 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008389/0.3832, allocations: 362.8 kB / 1.285 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.18e-05/0.3832, allocations: 0 / 1.285 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.72e-05/0.3833, allocations: 3.938 kB / 1.285 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.198e-05/0.3833, allocations: 0 / 1.285 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.3838, allocations: 120.1 kB / 1.285 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.647e-05/0.3839, allocations: 23.92 kB / 1.285 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.543e-05/0.384, allocations: 3.984 kB / 1.285 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.36e-05/0.384, allocations: 11.98 kB / 1.285 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.457e-05/0.3841, allocations: 19.92 kB / 1.285 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.3841, allocations: 0 / 1.285 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000457/0.3846, allocations: 271.7 kB / 1.286 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.825e-05/0.3846, allocations: 8 kB / 1.286 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.3846, allocations: 23.84 kB / 1.286 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.3849, allocations: 100.4 kB / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3849, allocations: 0 / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3849, allocations: 0 / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.3849, allocations: 0 / 1.286 GB, free: 10.18 MB / 0.9825 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.0005005/0.3854, allocations: 290 kB / 1.286 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 7.036e-05/0.3854, allocations: 16.03 kB / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.844e-05/0.3855, allocations: 192 / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.3855, allocations: 34.75 kB / 1.286 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.51e-05/0.3856, allocations: 4.922 kB / 1.286 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.3857, allocations: 118.4 kB / 1.286 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.3857, allocations: 384 / 1.286 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.3857, allocations: 8.328 kB / 1.286 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.3859, allocations: 57.98 kB / 1.286 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3859, allocations: 0 / 1.286 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.3859, allocations: 4 kB / 1.286 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3859, allocations: 0 / 1.286 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.531e-05/0.386, allocations: 19.98 kB / 1.286 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.3862, allocations: 132.8 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.3863, allocations: 62.5 kB / 1.286 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.661e-05/0.3863, allocations: 24.84 kB / 1.286 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005313/0.3869, allocations: 75.92 kB / 1.287 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.3869, allocations: 42.48 kB / 1.287 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3869, allocations: 0 / 1.287 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001314/0.3882, allocations: 455.8 kB / 1.287 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.3883, allocations: 55.39 kB / 1.287 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.129e-05/0.3883, allocations: 93.86 kB / 1.287 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.3884, allocations: 33.7 kB / 1.287 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.3884, allocations: 84.14 kB / 1.287 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.404e-05/0.3885, allocations: 35.69 kB / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.896e-05/0.3885, allocations: 33.64 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3887, allocations: 314.8 kB / 1.288 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.537e-05/0.3887, allocations: 19.98 kB / 1.288 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.877e-05/0.3888, allocations: 25.25 kB / 1.288 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.635e-05/0.3889, allocations: 53.84 kB / 1.288 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.3889, allocations: 3.938 kB / 1.288 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000167/0.389, allocations: 97.58 kB / 1.288 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.389, allocations: 14.34 kB / 1.288 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.389, allocations: 0 / 1.288 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3891, allocations: 0 / 1.288 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.3892, allocations: 23.92 kB / 1.288 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.3892, allocations: 7.984 kB / 1.288 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.981e-05/0.3892, allocations: 4 kB / 1.288 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.3892, allocations: 0 / 1.288 GB, free: 7.742 MB / 0.9825 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 9.814e-05/0.3893, allocations: 119.1 kB / 1.288 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.3893, allocations: 8.141 kB / 1.288 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.3896, allocations: 117.6 kB / 1.288 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3896, allocations: 4 kB / 1.288 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3896, allocations: 96 / 1.288 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3896, allocations: 3.938 kB / 1.288 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004253/0.39, allocations: 329.7 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.39, allocations: 0 / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3901, allocations: 23.92 kB / 1.288 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3901, allocations: 0 / 1.288 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.3901, allocations: 12 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3901, allocations: 4 kB / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3901, allocations: 0 / 1.288 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.3904, allocations: 227 kB / 1.289 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.5e-05/0.3905, allocations: 4 kB / 1.289 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.3905, allocations: 7.984 kB / 1.289 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.698e-05/0.3906, allocations: 0 / 1.289 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.347e-05/0.3906, allocations: 7.984 kB / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3906, allocations: 4 kB / 1.289 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.655e-05/0.3906, allocations: 87.28 kB / 1.289 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3906, allocations: 0 / 1.289 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002943/0.3909, allocations: 55.8 kB / 1.289 GB, free: 6.672 MB / 0.9825 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.0007529/0.3917, allocations: 0.7787 MB / 1.29 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001775/0.3919, allocations: 59.97 kB / 1.29 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3919, allocations: 4 kB / 1.29 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.865e-05/0.3919, allocations: 35.92 kB / 1.29 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.3922, allocations: 8 kB / 1.29 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.3937, allocations: 1.394 MB / 1.291 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.3941, allocations: 0.6885 MB / 1.292 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.893e-05/0.3941, allocations: 15.94 kB / 1.292 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.3942, allocations: 15.44 kB / 1.292 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of SimCode: time 6.01e-07/0.3942, allocations: 0 / 1.292 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.4197, allocations: 2.655 MB / 1.294 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 3.938 kB / 1.294 GB, free: 1.043 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.726745855004992]