Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",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.001598/0.001598, allocations: 108 kB / 15.6 MB, free: 132 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.001898/0.001899, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.43 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.405/2.405, allocations: 390.2 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5999/0.6013, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001833/0.6032, allocations: 0.5738 MB / 0.9503 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005373/0.6037, allocations: 323.6 kB / 0.9506 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.515e-05/0.6038, allocations: 1.375 kB / 0.9506 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.6038, allocations: 4 kB / 0.9506 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.279e-06/0.6038, allocations: 0 / 0.9506 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004359/0.6043, allocations: 106.7 kB / 0.9507 GB, free: 8.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.603e-05/0.6043, allocations: 6.672 kB / 0.9507 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.6043, allocations: 0 / 0.9507 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.34e-05/0.6044, allocations: 5.344 kB / 0.9507 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.888e-05/0.6044, allocations: 0 / 0.9507 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.6044, allocations: 1.469 kB / 0.9507 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003716/0.6048, allocations: 277.6 kB / 0.951 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.6048, allocations: 1.625 kB / 0.951 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.498e-05/0.6048, allocations: 0 / 0.951 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.605, allocations: 87.56 kB / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.605, allocations: 0 / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.323e-06/0.605, allocations: 0 / 0.9511 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.605, allocations: 0 / 0.9511 GB, free: 8.184 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002098/0.6052, allocations: 332.9 kB / 0.9514 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.6053, allocations: 9.875 kB / 0.9514 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.274e-05/0.6053, allocations: 38.67 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.6053, allocations: 4.938 kB / 0.9514 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.61e-05/0.6054, allocations: 161.6 kB / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.6054, allocations: 384 / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-06/0.6054, allocations: 1.125 kB / 0.9516 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.654e-05/0.6055, allocations: 36.69 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.6055, allocations: 7.875 kB / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.6055, allocations: 0 / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.6055, allocations: 0 / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.6056, allocations: 2.5 kB / 0.9516 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.6057, allocations: 150.9 kB / 0.9518 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.98e-05/0.6057, allocations: 19.73 kB / 0.9518 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.326e-05/0.6057, allocations: 10.14 kB / 0.9518 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003775/0.6061, allocations: 421.4 kB / 0.9522 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.6061, allocations: 40.34 kB / 0.9523 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.113e-06/0.6061, allocations: 0 / 0.9523 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.6063, allocations: 38.75 kB / 0.9523 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.692e-05/0.6063, allocations: 55.34 kB / 0.9523 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.401e-05/0.6063, allocations: 89.86 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.72e-06/0.6063, allocations: 26.92 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.977e-06/0.6063, allocations: 80.14 kB / 0.9525 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.6064, allocations: 3.906 kB / 0.9525 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.201e-05/0.6064, allocations: 16.19 kB / 0.9526 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.011e-05/0.6064, allocations: 316.1 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.6064, allocations: 0 / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.6065, allocations: 5.328 kB / 0.9529 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.451e-05/0.6065, allocations: 7.516 kB / 0.9529 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.6065, allocations: 1.375 kB / 0.9529 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.147e-05/0.6066, allocations: 31.08 kB / 0.9529 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.6066, allocations: 12.91 kB / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.6066, allocations: 3.938 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.6066, allocations: 1.406 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.775e-05/0.6066, allocations: 1.406 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.6067, allocations: 0 / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-06/0.6067, allocations: 1.094 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-06/0.6067, allocations: 0 / 0.9529 GB, free: 6.051 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 (1): * Single equations (assignments): 1 * 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.932e-05/0.6067, allocations: 114.8 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.6067, allocations: 1.688 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.978e-05/0.6068, allocations: 43.64 kB / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.6068, allocations: 1.375 kB / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.6068, allocations: 3.938 kB / 0.9531 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.6068, allocations: 0 / 0.9531 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.652e-05/0.6069, allocations: 147.1 kB / 0.9532 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.6069, allocations: 0 / 0.9532 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/0.6069, allocations: 6.438 kB / 0.9532 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.6069, allocations: 3.938 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.6069, allocations: 3.938 kB / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6069, allocations: 5.25 kB / 0.9532 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.607, allocations: 0 / 0.9532 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.258e-05/0.607, allocations: 60.22 kB / 0.9533 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.222e-05/0.607, allocations: 77.11 kB / 0.9534 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.6071, allocations: 5.406 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-06/0.6071, allocations: 3.938 kB / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.6071, allocations: 0 / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-06/0.6071, allocations: 1.406 kB / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.051e-05/0.6071, allocations: 79.28 kB / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6071, allocations: 0 / 0.9535 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001976/0.6073, allocations: 13 kB / 0.9535 GB, free: 5.422 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * 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.0002805/0.6076, allocations: 0.6146 MB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.377e-05/0.6077, allocations: 8.781 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.6077, allocations: 0 / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.113e-06/0.6077, allocations: 1.719 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.6078, allocations: 3.031 kB / 0.9541 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002464/0.6081, allocations: 113.7 kB / 0.9542 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.633e-05/0.6082, allocations: 0.6779 MB / 0.9548 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.745e-05/0.6082, allocations: 1.375 kB / 0.9549 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.31e-05/0.6082, allocations: 11.44 kB / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6082, allocations: 0 / 0.9549 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.6261, allocations: 1.162 MB / 0.956 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.169/7.795, allocations: 8.938 kB / 0.956 GB, free: 3.27 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y