Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.00158/0.00158, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002002/0.002001, allocations: 193.1 kB / 16.14 MB, free: 6.711 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.341/1.341, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.248/2.248, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 71.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5456/0.5469, allocations: 140.3 MB / 0.9491 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001493/0.5484, allocations: 0.6801 MB / 0.9497 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000548/0.549, allocations: 376.3 kB / 0.9501 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.296e-05/0.549, allocations: 0 / 0.9501 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.549, allocations: 0 / 0.9501 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.5491, allocations: 3.938 kB / 0.9501 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.5493, allocations: 81.34 kB / 0.9502 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.854e-05/0.5494, allocations: 22.97 kB / 0.9502 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.335e-05/0.5494, allocations: 1.375 kB / 0.9502 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.662e-05/0.5495, allocations: 13.42 kB / 0.9502 GB, free: 8.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.5495, allocations: 16.06 kB / 0.9502 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.5495, allocations: 1.375 kB / 0.9502 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002888/0.5498, allocations: 274.6 kB / 0.9505 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.203e-05/0.5498, allocations: 6.297 kB / 0.9505 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.5499, allocations: 15.39 kB / 0.9505 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.55, allocations: 102.9 kB / 0.9506 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.55, allocations: 3.938 kB / 0.9506 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.55, allocations: 0 / 0.9506 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.986e-06/0.55, allocations: 0 / 0.9506 GB, free: 7.977 MB / 0.7169 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.00029/0.5503, allocations: 366.4 kB / 0.9509 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.5504, allocations: 13.31 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.233e-05/0.5504, allocations: 35.94 kB / 0.951 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.5504, allocations: 3.531 kB / 0.951 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.627e-05/0.5505, allocations: 165.6 kB / 0.9512 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-06/0.5505, allocations: 2.625 kB / 0.9512 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.5505, allocations: 2.812 kB / 0.9512 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.245e-05/0.5506, allocations: 53.05 kB / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.5506, allocations: 9.203 kB / 0.9512 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-06/0.5507, allocations: 0 / 0.9512 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.5507, allocations: 5.312 kB / 0.9512 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.47e-05/0.5507, allocations: 23.23 kB / 0.9512 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001093/0.5508, allocations: 169.1 kB / 0.9514 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.461e-05/0.5509, allocations: 55.44 kB / 0.9515 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.518e-05/0.551, allocations: 30 kB / 0.9515 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005469/0.5515, allocations: 462 kB / 0.9519 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.526e-05/0.5515, allocations: 30.56 kB / 0.952 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.5515, allocations: 1.719 kB / 0.952 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001018/0.5526, allocations: 0.6056 MB / 0.9526 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.47e-05/0.5526, allocations: 52.78 kB / 0.9526 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.756e-05/0.5526, allocations: 94.05 kB / 0.9527 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.5527, allocations: 29.7 kB / 0.9527 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.346e-05/0.5527, allocations: 85.56 kB / 0.9528 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.5527, allocations: 39.61 kB / 0.9528 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.5527, allocations: 34.11 kB / 0.9529 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.359e-05/0.5528, allocations: 316.1 kB / 0.9532 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.5528, allocations: 20.67 kB / 0.9532 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.512e-05/0.5529, allocations: 26.05 kB / 0.9532 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.749e-05/0.5529, allocations: 53.11 kB / 0.9533 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.553, allocations: 1.312 kB / 0.9533 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001337/0.5531, allocations: 109.1 kB / 0.9534 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.5531, allocations: 4.969 kB / 0.9534 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.5531, allocations: 4 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.5531, allocations: 1.25 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-05/0.5532, allocations: 18.41 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.5532, allocations: 7.922 kB / 0.9534 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/0.5533, allocations: 5.219 kB / 0.9534 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.5533, allocations: 2.594 kB / 0.9534 GB, free: 5.113 MB / 0.7169 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 4.576e-05/0.5533, allocations: 117.1 kB / 0.9535 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.5534, allocations: 10.22 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.5535, allocations: 103.2 kB / 0.9536 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.5535, allocations: 2.219 kB / 0.9536 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.5535, allocations: 3.984 kB / 0.9536 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.5535, allocations: 1.031 kB / 0.9536 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002732/0.5538, allocations: 353.1 kB / 0.954 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.5538, allocations: 0 / 0.954 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.891e-05/0.5539, allocations: 21.69 kB / 0.954 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5539, allocations: 192 / 0.954 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.554, allocations: 9.703 kB / 0.954 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.554, allocations: 1.531 kB / 0.954 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.554, allocations: 4 kB / 0.954 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.5542, allocations: 226.4 kB / 0.9542 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.5542, allocations: 87.44 kB / 0.9543 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.5542, allocations: 0.875 kB / 0.9543 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.083e-05/0.5543, allocations: 6.062 kB / 0.9543 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.67e-05/0.5543, allocations: 7.391 kB / 0.9543 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.5544, allocations: 3.875 kB / 0.9543 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.706e-05/0.5544, allocations: 85.09 kB / 0.9544 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5544, allocations: 0 / 0.9544 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002534/0.5546, allocations: 44.61 kB / 0.9545 GB, free: 4.152 MB / 0.7169 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.0004244/0.5551, allocations: 0.7974 MB / 0.9552 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001158/0.5552, allocations: 58.11 kB / 0.9553 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5552, allocations: 4.062 kB / 0.9553 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.347e-05/0.5552, allocations: 34.53 kB / 0.9553 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.5555, allocations: 6.438 kB / 0.9553 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008635/0.5563, allocations: 1.415 MB / 0.9567 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.279e-05/0.5564, allocations: 0.6854 MB / 0.9574 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.751e-05/0.5565, allocations: 14.83 kB / 0.9574 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.5565, allocations: 16.09 kB / 0.9574 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.5565, allocations: 0 / 0.9574 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/0.7211, allocations: 2.321 MB / 0.9597 GB, free: 240 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.7213, allocations: 231.8 kB / 0.9599 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.409, allocations: 2.953 kB / 0.9599 GB, free: 15.98 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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