Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001436/0.001437, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.417/2.417, allocations: 437 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.001521, allocations: 67.89 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9426/0.9442, allocations: 151.6 MB / 1.167 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001776/0.946, allocations: 0.5867 MB / 1.168 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006568/0.9467, allocations: 318.8 kB / 1.168 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.843e-05/0.9467, allocations: 0 / 1.168 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.9467, allocations: 0 / 1.168 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.9467, allocations: 4 kB / 1.168 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.9473, allocations: 108.9 kB / 1.168 GB, free: 2.816 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.596e-05/0.9473, allocations: 7.938 kB / 1.168 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.903e-05/0.9474, allocations: 0 / 1.168 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.973e-05/0.9474, allocations: 7.984 kB / 1.168 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.9474, allocations: 3.938 kB / 1.168 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.9474, allocations: 4 kB / 1.168 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004305/0.9479, allocations: 267.6 kB / 1.169 GB, free: 2.531 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.9479, allocations: 0 / 1.169 GB, free: 2.531 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.924e-05/0.9479, allocations: 8 kB / 1.169 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.9481, allocations: 83.86 kB / 1.169 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.9481, allocations: 0 / 1.169 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9481, allocations: 4 kB / 1.169 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.9481, allocations: 0 / 1.169 GB, free: 2.438 MB / 0.8887 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.0003443/0.9485, allocations: 331.6 kB / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.9485, allocations: 8.922 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.9486, allocations: 0.9375 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.9487, allocations: 168.3 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.9487, allocations: 384 / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.9487, allocations: 4.312 kB / 1.169 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.572e-05/0.9488, allocations: 34.25 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.9488, allocations: 192 / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.9489, allocations: 3.938 kB / 1.169 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.9489, allocations: 4 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.9489, allocations: 3.938 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.949, allocations: 149.7 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.229e-05/0.9491, allocations: 21.08 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.647e-05/0.9491, allocations: 8.844 kB / 1.169 GB, free: 1.562 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005267/0.9497, allocations: 429.6 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.9497, allocations: 30.56 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.282e-06/0.9497, allocations: 0 / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001691/0.9499, allocations: 45.58 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.9499, allocations: 51.53 kB / 1.17 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.31e-05/0.9499, allocations: 93.86 kB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.95, allocations: 25.7 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.801e-05/0.95, allocations: 80.14 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.95, allocations: 0 / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.9501, allocations: 13.72 kB / 1.17 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.9502, allocations: 314.8 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.057e-05/0.9502, allocations: 0 / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.801e-06/0.9502, allocations: 0 / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.055e-05/0.9503, allocations: 16.92 kB / 1.17 GB, free: 336 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9503, allocations: 0 / 1.17 GB, free: 336 kB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.513e-05/0.9504, allocations: 33.64 kB / 1.17 GB, free: 296 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.9504, allocations: 8 kB / 1.17 GB, free: 288 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.9504, allocations: 0 / 1.17 GB, free: 288 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.9504, allocations: 3.938 kB / 1.17 GB, free: 284 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.524e-05/0.9505, allocations: 3.984 kB / 1.17 GB, free: 280 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.9505, allocations: 4 kB / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.01e-05/0.9505, allocations: 0 / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.9505, allocations: 4.031 kB / 1.171 GB, free: 272 kB / 0.8887 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 6.526e-05/0.9506, allocations: 105.8 kB / 1.171 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.9506, allocations: 3.906 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.984e-05/0.9507, allocations: 56.62 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.9507, allocations: 3.984 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.9507, allocations: 0 / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.9507, allocations: 3.984 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.9508, allocations: 145.7 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.9509, allocations: 0 / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.467e-05/0.9509, allocations: 7.938 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.9509, allocations: 0 / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.9509, allocations: 7.938 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.9509, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.9509, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.725e-05/0.951, allocations: 61.12 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.451e-05/0.9511, allocations: 84.94 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.9511, allocations: 3.938 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-06/0.9511, allocations: 0 / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.9511, allocations: 4 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-06/0.9511, allocations: 3.984 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.939e-05/0.9511, allocations: 79.22 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9511, allocations: 0 / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002068/0.9514, allocations: 12 kB / 1.171 GB, free: 15.59 MB / 0.9044 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.0001855/0.9516, allocations: 111.2 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 7.195e-05/0.9516, allocations: 8 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.9516, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.054e-05/0.9517, allocations: 7.984 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.9518, allocations: 2.812 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002314/0.952, allocations: 102.6 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.9523, allocations: 0.6729 MB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.454e-05/0.9523, allocations: 7.438 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.9523, allocations: 4.125 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.001784/0.9541, allocations: 471.5 kB / 1.172 GB, free: 14.15 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches