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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001301/0.001301, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001498/0.001499, allocations: 194.5 kB / 16.25 MB, free: 6.621 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.24/1.24, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.117/2.117, allocations: 390.2 MB / 0.6644 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.88 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5512/0.5524, allocations: 140.4 MB / 0.9492 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001515/0.5539, allocations: 0.6911 MB / 0.9499 GB, free: 8.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004626/0.5544, allocations: 353 kB / 0.9502 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.748e-05/0.5544, allocations: 1.375 kB / 0.9503 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.5544, allocations: 3.938 kB / 0.9503 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.012e-05/0.5545, allocations: 0 / 0.9503 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.5548, allocations: 101.8 kB / 0.9504 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.744e-05/0.5549, allocations: 18.27 kB / 0.9504 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.174e-05/0.5549, allocations: 7.203 kB / 0.9504 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.5549, allocations: 8.594 kB / 0.9504 GB, free: 8.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.516e-05/0.555, allocations: 19.31 kB / 0.9504 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.555, allocations: 2.281 kB / 0.9504 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002831/0.5553, allocations: 271 kB / 0.9507 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.053e-05/0.5553, allocations: 10.05 kB / 0.9507 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.5553, allocations: 16.62 kB / 0.9507 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.5555, allocations: 102 kB / 0.9508 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.5555, allocations: 0 / 0.9508 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5555, allocations: 1 kB / 0.9508 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.5555, allocations: 0 / 0.9508 GB, free: 8.152 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.0002517/0.5557, allocations: 360.6 kB / 0.9511 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.5558, allocations: 9.375 kB / 0.9511 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.357e-05/0.5558, allocations: 36.62 kB / 0.9512 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.5559, allocations: 2.594 kB / 0.9512 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.753e-05/0.5559, allocations: 173.5 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.5559, allocations: 2.156 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.5559, allocations: 4.062 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.297e-05/0.556, allocations: 53.17 kB / 0.9514 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.556, allocations: 7.875 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.5561, allocations: 1.344 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.5561, allocations: 1.344 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.152e-05/0.5561, allocations: 21.89 kB / 0.9514 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.5562, allocations: 177.8 kB / 0.9516 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.891e-05/0.5563, allocations: 59.78 kB / 0.9517 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.228e-05/0.5563, allocations: 29.22 kB / 0.9517 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005147/0.5569, allocations: 457.6 kB / 0.9521 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.5569, allocations: 31.97 kB / 0.9522 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.5569, allocations: 0 / 0.9522 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001005/0.5579, allocations: 0.604 MB / 0.9527 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.701e-05/0.5579, allocations: 52.53 kB / 0.9528 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.625e-05/0.558, allocations: 101.7 kB / 0.9529 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.558, allocations: 30.92 kB / 0.9529 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.207e-05/0.558, allocations: 81.39 kB / 0.953 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.558, allocations: 39.3 kB / 0.953 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.308e-05/0.5581, allocations: 30.34 kB / 0.9531 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.478e-05/0.5581, allocations: 324.3 kB / 0.9534 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.643e-05/0.5582, allocations: 19.89 kB / 0.9534 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.292e-05/0.5582, allocations: 21.44 kB / 0.9534 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.52e-05/0.5583, allocations: 53.31 kB / 0.9535 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.5583, allocations: 0 / 0.9535 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001298/0.5584, allocations: 105 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.5584, allocations: 5.344 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-06/0.5584, allocations: 0 / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.5585, allocations: 1.438 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.099e-05/0.5585, allocations: 26.39 kB / 0.9536 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.5586, allocations: 4 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.241e-05/0.5586, allocations: 5.312 kB / 0.9536 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.5586, allocations: 2.5 kB / 0.9536 GB, free: 5.289 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 5.049e-05/0.5586, allocations: 116.4 kB / 0.9537 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.5587, allocations: 11.75 kB / 0.9537 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.5588, allocations: 107.2 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.5588, allocations: 0.9062 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5589, allocations: 1.188 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.5589, allocations: 4 kB / 0.9538 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.5591, allocations: 357 kB / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5591, allocations: 0 / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5592, allocations: 21.08 kB / 0.9542 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.5593, allocations: 1.062 kB / 0.9542 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.5593, allocations: 5.469 kB / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5593, allocations: 1.406 kB / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5593, allocations: 0 / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.5595, allocations: 221.9 kB / 0.9544 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.81e-05/0.5595, allocations: 87.91 kB / 0.9545 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.5595, allocations: 5.516 kB / 0.9545 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.9e-05/0.5596, allocations: 6.469 kB / 0.9545 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.5596, allocations: 6.719 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.5596, allocations: 6.875 kB / 0.9545 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.662e-05/0.5597, allocations: 86.14 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5597, allocations: 0 / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002443/0.5599, allocations: 36.5 kB / 0.9546 GB, free: 4.332 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.0003936/0.5603, allocations: 0.7967 MB / 0.9554 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001263/0.5604, allocations: 72.12 kB / 0.9555 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5605, allocations: 0 / 0.9555 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.5605, allocations: 29.52 kB / 0.9555 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.5607, allocations: 11.52 kB / 0.9555 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008669/0.5616, allocations: 1.401 MB / 0.9569 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.298e-05/0.5617, allocations: 0.6935 MB / 0.9576 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.406e-05/0.5617, allocations: 6.156 kB / 0.9576 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.053e-05/0.5617, allocations: 20.7 kB / 0.9576 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5618, allocations: 4 kB / 0.9576 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01173/0.5735, allocations: 2.365 MB / 0.9599 GB, free: 408 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/0.5737, allocations: 236.6 kB / 0.9601 GB, free: 144 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/2.133, allocations: 10.31 kB / 0.9601 GB, free: 136 kB / 0.7169 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