Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.00124/0.00124, 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.001273/0.001273, allocations: 199.5 kB / 16.26 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.242/1.242, 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.114/2.114, allocations: 390.3 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 75.88 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5545/0.5558, allocations: 140.4 MB / 0.9492 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001671/0.5575, allocations: 0.6611 MB / 0.9499 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005203/0.558, allocations: 339.6 kB / 0.9502 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.788e-05/0.5581, allocations: 0 / 0.9502 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.5581, allocations: 7.875 kB / 0.9502 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.727e-05/0.5581, allocations: 0 / 0.9502 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.5586, allocations: 97.14 kB / 0.9503 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.926e-05/0.5586, allocations: 9.375 kB / 0.9503 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.664e-05/0.5587, allocations: 1.094 kB / 0.9503 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.624e-05/0.5587, allocations: 2.406 kB / 0.9503 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.959e-05/0.5587, allocations: 14.34 kB / 0.9503 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.011e-05/0.5587, allocations: 0 / 0.9503 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.559, allocations: 270.8 kB / 0.9506 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.5591, allocations: 5.375 kB / 0.9506 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.717e-05/0.5591, allocations: 1.969 kB / 0.9506 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.5592, allocations: 93.17 kB / 0.9507 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5592, allocations: 7.938 kB / 0.9507 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5592, allocations: 0 / 0.9507 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.5593, allocations: 0 / 0.9507 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002509/0.5595, allocations: 339.2 kB / 0.951 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.5596, allocations: 18.41 kB / 0.951 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.151e-05/0.5596, allocations: 34.75 kB / 0.9511 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.5596, allocations: 2.531 kB / 0.9511 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.411e-05/0.5597, allocations: 166.6 kB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.5597, allocations: 1.75 kB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.5597, allocations: 1.688 kB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.424e-05/0.5598, allocations: 30.11 kB / 0.9513 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.5598, allocations: 5.094 kB / 0.9513 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.5598, allocations: 3.984 kB / 0.9513 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.5598, allocations: 9.422 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.982e-05/0.5599, allocations: 5.406 kB / 0.9513 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001008/0.56, allocations: 145.4 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.757e-05/0.56, allocations: 30.59 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.377e-05/0.56, allocations: 7.766 kB / 0.9515 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005783/0.5606, allocations: 459.5 kB / 0.9519 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.5606, allocations: 35.94 kB / 0.9519 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.5607, allocations: 0 / 0.9519 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004109/0.5611, allocations: 256.7 kB / 0.9522 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.001e-05/0.5611, allocations: 51.41 kB / 0.9522 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.291e-05/0.5611, allocations: 96.61 kB / 0.9523 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.184e-06/0.5612, allocations: 31.02 kB / 0.9524 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.269e-05/0.5612, allocations: 80.14 kB / 0.9524 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.5612, allocations: 9.219 kB / 0.9524 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/0.5612, allocations: 21.14 kB / 0.9525 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.499e-05/0.5613, allocations: 316 kB / 0.9528 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.781e-05/0.5613, allocations: 11.34 kB / 0.9528 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.263e-05/0.5613, allocations: 23.2 kB / 0.9528 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.696e-05/0.5614, allocations: 26.59 kB / 0.9528 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.5614, allocations: 0 / 0.9528 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.468e-05/0.5614, allocations: 57.69 kB / 0.9529 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.5615, allocations: 11.94 kB / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.5615, allocations: 0 / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.5615, allocations: 1.219 kB / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.225e-05/0.5615, allocations: 6.719 kB / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.5616, allocations: 0 / 0.9529 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.834e-05/0.5616, allocations: 5.062 kB / 0.9529 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.5616, allocations: 1.344 kB / 0.9529 GB, free: 5.699 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 3.846e-05/0.5616, allocations: 108.1 kB / 0.953 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.5617, allocations: 13.66 kB / 0.953 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.5618, allocations: 61.52 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.5618, allocations: 0 / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.5618, allocations: 1.219 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5618, allocations: 0 / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.515e-05/0.5619, allocations: 149.8 kB / 0.9532 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.5619, allocations: 4 kB / 0.9532 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.5619, allocations: 4.812 kB / 0.9532 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.5619, allocations: 3.938 kB / 0.9532 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.5619, allocations: 5.344 kB / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.562, allocations: 0 / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.562, allocations: 1.75 kB / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.5621, allocations: 81.95 kB / 0.9533 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.304e-05/0.5621, allocations: 81.05 kB / 0.9534 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.5621, allocations: 1.609 kB / 0.9534 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.894e-05/0.5622, allocations: 5 kB / 0.9534 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.5622, allocations: 5.156 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-06/0.5622, allocations: 9.062 kB / 0.9534 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.509e-05/0.5622, allocations: 77.59 kB / 0.9535 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5622, allocations: 3.938 kB / 0.9535 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000204/0.5624, allocations: 23.31 kB / 0.9535 GB, free: 5.035 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0003101/0.5627, allocations: 0.6527 MB / 0.9541 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.462e-05/0.5628, allocations: 15.7 kB / 0.9542 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.5628, allocations: 3.938 kB / 0.9542 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.489e-05/0.5628, allocations: 9.688 kB / 0.9542 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.563, allocations: 3.125 kB / 0.9542 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006131/0.5636, allocations: 1.121 MB / 0.9553 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.355e-05/0.5637, allocations: 0.6882 MB / 0.9559 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.899e-05/0.5637, allocations: 6.328 kB / 0.956 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.319e-05/0.5638, allocations: 13.62 kB / 0.956 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.5638, allocations: 0 / 0.956 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.5754, allocations: 1.631 MB / 0.9576 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.5756, allocations: 236.2 kB / 0.9578 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.149, allocations: 1.094 kB / 0.9578 GB, free: 1.488 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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(x),der(y),n,time,x,y