Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.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.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006524/0.006524, allocations: 100.3 kB / 15.73 MB, free: 6 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.001466/0.001466, allocations: 188.3 kB / 16.67 MB, free: 5.918 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.634/2.634, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 68.11 kB / 1.065 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.873/0.8743, allocations: 159.1 MB / 1.221 GB, free: 2.055 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.0024/0.8767, allocations: 1.434 MB / 1.222 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000706/0.8774, allocations: 390.6 kB / 1.222 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.919e-05/0.8774, allocations: 4 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.8774, allocations: 3.938 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.045e-05/0.8775, allocations: 0 / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.8779, allocations: 119.6 kB / 1.222 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.728e-05/0.878, allocations: 23.92 kB / 1.223 GB, free: 84 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.512e-05/0.8781, allocations: 7.984 kB / 1.223 GB, free: 76 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.913e-05/0.8781, allocations: 11.94 kB / 1.223 GB, free: 64 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.865e-05/0.8782, allocations: 11.98 kB / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.8782, allocations: 7.938 kB / 1.223 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000392/0.8786, allocations: 279.6 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.8786, allocations: 3.984 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.8786, allocations: 11.94 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.8788, allocations: 108.2 kB / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8788, allocations: 0 / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8788, allocations: 0 / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.8788, allocations: 0 / 1.223 GB, free: 15.65 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004955/0.8793, allocations: 367.2 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.8793, allocations: 12.03 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.8794, allocations: 0.9375 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.8795, allocations: 180.3 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.8795, allocations: 4.375 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.8796, allocations: 384 / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.8797, allocations: 58.16 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.413e-06/0.8797, allocations: 192 / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.8797, allocations: 3.938 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.8797, allocations: 4 kB / 1.224 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.8799, allocations: 31.97 kB / 1.224 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.8802, allocations: 257 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.8803, allocations: 34.5 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.675e-05/0.8804, allocations: 32.83 kB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006693/0.8811, allocations: 457.5 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.8811, allocations: 38.5 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.8811, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003883/0.8815, allocations: 85.58 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.8815, allocations: 51.41 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.8816, allocations: 105.8 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.8816, allocations: 25.7 kB / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.8817, allocations: 88.27 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.8817, allocations: 11.94 kB / 1.225 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.8817, allocations: 13.72 kB / 1.225 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.8818, allocations: 310.8 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/0.8819, allocations: 19.92 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.07e-05/0.882, allocations: 19.97 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.8822, allocations: 44.89 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.8822, allocations: 0 / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002064/0.8824, allocations: 73.55 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.8824, allocations: 4 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.8824, allocations: 0 / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.8824, allocations: 0 / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.315e-05/0.8825, allocations: 8 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.8825, allocations: 8.016 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.677e-05/0.8826, allocations: 7.938 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.8826, allocations: 0 / 1.225 GB, free: 13.02 MB / 0.9512 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 (2): * Single equations (assignments): 2 * 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 8.368e-05/0.8827, allocations: 113.8 kB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.8827, allocations: 4 kB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.8829, allocations: 73.17 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.8829, allocations: 4.031 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8829, allocations: 0 / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.8829, allocations: 0 / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.8831, allocations: 161.6 kB / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.8831, allocations: 3.984 kB / 1.226 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.651e-05/0.8832, allocations: 8 kB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.8832, allocations: 0 / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.8832, allocations: 256 / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.8832, allocations: 4 kB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.8832, allocations: 0 / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.8834, allocations: 175.4 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.8835, allocations: 85.05 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.8835, allocations: 0 / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.401e-05/0.8835, allocations: 7.938 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.8836, allocations: 3.984 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.8836, allocations: 8.031 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.483e-05/0.8836, allocations: 83.28 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8836, allocations: 3.938 kB / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002349/0.8839, allocations: 15.94 kB / 1.226 GB, free: 12.18 MB / 0.9512 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 (2): * Single equations (assignments): 2 * 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.00016/0.884, allocations: 111.2 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002133/0.8842, allocations: 39.91 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.8842, allocations: 4.062 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.585e-05/0.8843, allocations: 23.97 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.8846, allocations: 3.938 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.8849, allocations: 117.4 kB / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.8852, allocations: 0.6768 MB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.35e-05/0.8852, allocations: 4 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.122e-05/0.8852, allocations: 11.5 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of SimCode: time 6.01e-07/0.8852, allocations: 4 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of Templates: time 0.002919/0.8882, allocations: 0.7217 MB / 1.228 GB, free: 10.41 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches