Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_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.001312/0.001312, allocations: 100.1 kB / 15.88 MB, free: 12 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.001466/0.001466, allocations: 199.5 kB / 16.79 MB, free: 6.809 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.79/2.79, allocations: 461.8 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 68.61 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.298, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00282/0.3008, allocations: 1.506 MB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008042/0.3017, allocations: 406.8 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.201e-05/0.3017, allocations: 4 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/0.3018, allocations: 0 / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.523e-05/0.3018, allocations: 3.938 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.3022, allocations: 79.84 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.895e-05/0.3023, allocations: 23.92 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.764e-05/0.3024, allocations: 4 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.644e-05/0.3024, allocations: 15.92 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.821e-05/0.3025, allocations: 11.92 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.3025, allocations: 0 / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003609/0.3028, allocations: 275.6 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.3029, allocations: 0 / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.3029, allocations: 15.92 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000161/0.3031, allocations: 71.89 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3031, allocations: 0 / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3031, allocations: 0 / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.3031, allocations: 0 / 1.055 GB, free: 5.914 MB / 0.8106 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.0004802/0.3036, allocations: 367.6 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3036, allocations: 15.91 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.276e-05/0.3037, allocations: 12.88 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.3038, allocations: 160.4 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.3038, allocations: 4.312 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.3038, allocations: 8.375 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.304, allocations: 50.23 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3041, allocations: 192 / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3041, allocations: 3.938 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3041, allocations: 4 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.3043, allocations: 35.95 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003298/0.3046, allocations: 260.8 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.3047, allocations: 38.5 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.301e-05/0.3048, allocations: 20.91 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006912/0.3055, allocations: 465.5 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.3055, allocations: 30.56 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3056, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003802/0.3059, allocations: 89.58 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.306, allocations: 51.41 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.946e-05/0.3061, allocations: 105.8 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.3061, allocations: 25.7 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.921e-05/0.3061, allocations: 88.12 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.3062, allocations: 11.84 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.3062, allocations: 9.719 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.693e-05/0.3063, allocations: 323 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-05/0.3064, allocations: 15.98 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.141e-05/0.3065, allocations: 19.98 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.3066, allocations: 32.83 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3066, allocations: 0 / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002087/0.3068, allocations: 77.59 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3069, allocations: 8 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3069, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.3069, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.335e-05/0.307, allocations: 11.98 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.307, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.63e-05/0.307, allocations: 7.984 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.307, allocations: 0 / 1.057 GB, free: 3.289 MB / 0.8106 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 6.647e-05/0.3071, allocations: 119.3 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.3072, allocations: 15.83 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002269/0.3074, allocations: 73.12 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3074, allocations: 4 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.3074, allocations: 0 / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3074, allocations: 0 / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.3076, allocations: 161.6 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3076, allocations: 7.969 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.3076, allocations: 11.98 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3077, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.3077, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3077, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3077, allocations: 256 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.3079, allocations: 171.5 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.091e-05/0.308, allocations: 77.11 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.308, allocations: 4 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.424e-05/0.3081, allocations: 7.984 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.3081, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.3081, allocations: 3.938 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.826e-05/0.3082, allocations: 91.27 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3082, allocations: 0 / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002277/0.3084, allocations: 16 kB / 1.058 GB, free: 2.441 MB / 0.8106 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.0001582/0.3086, allocations: 107.3 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.3088, allocations: 35.95 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3088, allocations: 4 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.018e-05/0.3089, allocations: 15.98 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3091, allocations: 7.938 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/0.3094, allocations: 152.9 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.3097, allocations: 0.6809 MB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.3097, allocations: 7.438 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of SimCode: time 5.41e-07/0.3097, allocations: 0 / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of Templates: time 0.001971/0.3117, allocations: 0.6961 MB / 1.06 GB, free: 0.6719 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches