Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.281/1.281, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.351/2.351, allocations: 437.1 MB / 0.7104 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 67.91 kB / 0.8694 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5058/0.5074, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001747/0.5092, allocations: 0.6115 MB / 1.018 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006115/0.5098, allocations: 354.7 kB / 1.018 GB, free: 1.555 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.5098, allocations: 0 / 1.018 GB, free: 1.555 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.173e-05/0.5098, allocations: 3.938 kB / 1.018 GB, free: 1.551 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.874e-05/0.5099, allocations: 0 / 1.018 GB, free: 1.551 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.5103, allocations: 127.6 kB / 1.018 GB, free: 1.426 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.743e-05/0.5104, allocations: 19.98 kB / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.35e-05/0.5104, allocations: 0 / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.042e-05/0.5104, allocations: 11.88 kB / 1.019 GB, free: 1.395 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.65e-05/0.5105, allocations: 19.91 kB / 1.019 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.5105, allocations: 4 kB / 1.019 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003551/0.5109, allocations: 279.6 kB / 1.019 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.5109, allocations: 0 / 1.019 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.311e-05/0.5109, allocations: 11.94 kB / 1.019 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.5111, allocations: 107.8 kB / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.5111, allocations: 0 / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5111, allocations: 0 / 1.019 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.5111, allocations: 0 / 1.019 GB, free: 0.9805 MB / 0.7637 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.0003716/0.5115, allocations: 371 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.5115, allocations: 8.031 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.972e-05/0.5116, allocations: 38.75 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.5116, allocations: 4.844 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.5117, allocations: 176.2 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.5117, allocations: 4.375 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.5118, allocations: 4.375 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.5119, allocations: 54.23 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5119, allocations: 3.938 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.5119, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.5119, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.818e-05/0.512, allocations: 23.98 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.5121, allocations: 161.7 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.5123, allocations: 66.56 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.252e-05/0.5123, allocations: 28.84 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006302/0.5129, allocations: 457.5 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.513, allocations: 38.56 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.513, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001215/0.5142, allocations: 0.5951 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.556e-05/0.5142, allocations: 59.41 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.058e-05/0.5143, allocations: 93.86 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.5143, allocations: 29.7 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.5144, allocations: 88.06 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.5144, allocations: 31.47 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.931e-05/0.5145, allocations: 33.7 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.966e-05/0.5146, allocations: 314.8 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.211e-05/0.5146, allocations: 19.98 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.648e-05/0.5147, allocations: 31.92 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.63e-05/0.5148, allocations: 50.11 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.5148, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001556/0.5149, allocations: 110.5 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.5149, allocations: 4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.515, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.515, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.581e-05/0.5151, allocations: 23.94 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.5151, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.6e-05/0.5151, allocations: 7.984 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.5151, allocations: 11.94 kB / 1.022 GB, free: 13.68 MB / 0.7794 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 7.156e-05/0.5152, allocations: 115.2 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.5152, allocations: 3.938 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.5154, allocations: 110.1 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.5154, allocations: 3.984 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5154, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5154, allocations: 3.984 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.5158, allocations: 358.5 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5158, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.5159, allocations: 27.94 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.5159, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.5159, allocations: 4 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.516, allocations: 3.984 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.516, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.5162, allocations: 219.3 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.923e-05/0.5163, allocations: 89.09 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.5163, allocations: 4 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.8e-05/0.5164, allocations: 8 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.5164, allocations: 3.984 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.5164, allocations: 4 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.767e-05/0.5164, allocations: 79.28 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5164, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002537/0.5167, allocations: 43.98 kB / 1.023 GB, free: 12.51 MB / 0.7794 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.000562/0.5173, allocations: 0.7909 MB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.5174, allocations: 71.55 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.5174, allocations: 0 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.5175, allocations: 39.97 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.5177, allocations: 4 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.5188, allocations: 1.401 MB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.5191, allocations: 0.6857 MB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.58e-05/0.5191, allocations: 15.91 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.5192, allocations: 19.44 kB / 1.026 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5192, allocations: 0 / 1.026 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.77/1.289, allocations: 2.45 MB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/9.589, allocations: 6.016 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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