Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00886/0.00886, allocations: 100.1 kB / 15.73 MB, free: 6.492 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.002081/0.002081, allocations: 193.8 kB / 16.68 MB, free: 6.371 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.895/2.895, allocations: 469.8 MB / 0.7425 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.89 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3003, allocations: 159.1 MB / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001514/0.3018, allocations: 0.5855 MB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006024/0.3024, allocations: 328.6 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.32e-05/0.3025, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.351e-05/0.3025, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.3025, allocations: 0 / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.3029, allocations: 103.7 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.007e-05/0.3029, allocations: 8 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.303, allocations: 0 / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.269e-05/0.303, allocations: 3.984 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.058e-05/0.303, allocations: 7.922 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.295e-06/0.303, allocations: 0 / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003762/0.3034, allocations: 271.7 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.3034, allocations: 0 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.541e-05/0.3034, allocations: 0 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.3036, allocations: 87.73 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3036, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3036, allocations: 8 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.3036, allocations: 0 / 1.222 GB, free: 12.31 MB / 0.9825 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.0003379/0.304, allocations: 339.3 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.304, allocations: 8.031 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.304, allocations: 0.9375 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.3041, allocations: 164.4 kB / 1.222 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.3042, allocations: 12.31 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-06/0.3042, allocations: 384 / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.847e-05/0.3043, allocations: 26.27 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3043, allocations: 4.188 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3043, allocations: 3.938 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3043, allocations: 0 / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.24e-05/0.3043, allocations: 7.938 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001432/0.3044, allocations: 149.7 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.046e-05/0.3045, allocations: 18.61 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.581e-05/0.3045, allocations: 4.859 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005309/0.305, allocations: 433.5 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.3051, allocations: 30.56 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3051, allocations: 0 / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001574/0.3052, allocations: 37.58 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.3053, allocations: 51.53 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.403e-05/0.3053, allocations: 97.86 kB / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.3053, allocations: 25.7 kB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.558e-05/0.3053, allocations: 84.14 kB / 1.223 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.3054, allocations: 7.922 kB / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.3054, allocations: 9.719 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3055, allocations: 314.8 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.3055, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.54e-06/0.3055, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.098e-05/0.3056, allocations: 16.86 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3056, allocations: 0 / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.457e-05/0.3056, allocations: 37.64 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3056, allocations: 11.98 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3057, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.3057, allocations: 3.938 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.451e-05/0.3057, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.3057, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-06/0.3057, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.3057, allocations: 8.031 kB / 1.224 GB, free: 10.12 MB / 0.9825 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 7.143e-05/0.3058, allocations: 105.8 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.3058, allocations: 0 / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.716e-05/0.3059, allocations: 48.69 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3059, allocations: 4 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3059, allocations: 0 / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3059, allocations: 0 / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.306, allocations: 141.7 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.306, allocations: 4.031 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-05/0.306, allocations: 4 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.306, allocations: 3.938 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3061, allocations: 7.922 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3061, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3061, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.841e-05/0.3061, allocations: 61.14 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.056e-05/0.3062, allocations: 81.14 kB / 1.224 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.3062, allocations: 11.92 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.3062, allocations: 3.984 kB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.3062, allocations: 0 / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-06/0.3062, allocations: 0 / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.525e-05/0.3062, allocations: 83.22 kB / 1.224 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3062, allocations: 0 / 1.224 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000214/0.3065, allocations: 8 kB / 1.224 GB, free: 9.465 MB / 0.9825 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.0002218/0.3067, allocations: 115.2 kB / 1.224 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.055e-05/0.3067, allocations: 11.98 kB / 1.224 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3068, allocations: 0 / 1.224 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.192e-06/0.3068, allocations: 3.938 kB / 1.224 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.3069, allocations: 8 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001893/0.3071, allocations: 80.84 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.3074, allocations: 0.669 MB / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.127e-05/0.3074, allocations: 12.11 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.3074, allocations: 7.438 kB / 1.225 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3074, allocations: 0 / 1.225 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of Templates: time 0.002354/0.3097, allocations: 460.3 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches