Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_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.00147/0.00147, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001819/0.001819, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.442/1.442, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.686/2.686, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.86 kB / 0.8986 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2846, allocations: 157.4 MB / 1.052 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001697/0.2863, allocations: 0.6503 MB / 1.053 GB, free: 8.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0005947/0.2869, allocations: 330.8 kB / 1.053 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.039e-05/0.2869, allocations: 0 / 1.053 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.287, allocations: 4 kB / 1.053 GB, free: 7.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.548e-06/0.287, allocations: 0 / 1.053 GB, free: 7.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004027/0.2874, allocations: 99.64 kB / 1.053 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.74e-05/0.2874, allocations: 4 kB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.2875, allocations: 4 kB / 1.053 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.503e-05/0.2875, allocations: 3.938 kB / 1.053 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.2875, allocations: 0 / 1.053 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.2875, allocations: 0 / 1.053 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003634/0.2879, allocations: 275.6 kB / 1.054 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.385e-06/0.2879, allocations: 0 / 1.054 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.276e-05/0.2879, allocations: 0 / 1.054 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.2881, allocations: 95.78 kB / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2881, allocations: 0 / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2881, allocations: 0 / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.2881, allocations: 4 kB / 1.054 GB, free: 7.301 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002981/0.2884, allocations: 335.5 kB / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.2885, allocations: 8.625 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.149e-05/0.2885, allocations: 0.9375 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.359e-05/0.2886, allocations: 164.4 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.2886, allocations: 384 / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.2886, allocations: 8.359 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.618e-05/0.2887, allocations: 26.27 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.2887, allocations: 4.125 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.2887, allocations: 3.938 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2887, allocations: 0 / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.844e-05/0.2888, allocations: 4 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.2889, allocations: 149.7 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.267e-05/0.2889, allocations: 18.61 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.697e-05/0.289, allocations: 8.844 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004761/0.2894, allocations: 425.6 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.2895, allocations: 34.56 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 2.475e-06/0.2895, allocations: 0 / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001332/0.2896, allocations: 37.58 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.2897, allocations: 55.41 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.455e-05/0.2897, allocations: 93.86 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.2897, allocations: 25.7 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.2898, allocations: 80.14 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.2898, allocations: 0 / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.2898, allocations: 17.83 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2899, allocations: 314.8 kB / 1.055 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.727e-06/0.2899, allocations: 3.938 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-06/0.29, allocations: 0 / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.622e-05/0.29, allocations: 16.8 kB / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.29, allocations: 0 / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.866e-05/0.2901, allocations: 29.7 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2901, allocations: 8 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2901, allocations: 4.094 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2901, allocations: 11.88 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.843e-05/0.2901, allocations: 3.984 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2902, allocations: 0 / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.686e-06/0.2902, allocations: 0 / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.2902, allocations: 4 kB / 1.056 GB, free: 5.125 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 (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.2902, allocations: 105.8 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.2903, allocations: 3.984 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.548e-05/0.2903, allocations: 52.97 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.2904, allocations: 4 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2904, allocations: 0 / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2904, allocations: 0 / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.596e-05/0.2905, allocations: 141.7 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2905, allocations: 0 / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.2905, allocations: 4 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.2905, allocations: 0 / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.2905, allocations: 3.938 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.2905, allocations: 0 / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2905, allocations: 4.031 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.319e-05/0.2906, allocations: 65.06 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.2906, allocations: 81.05 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.719e-06/0.2907, allocations: 3.938 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.963e-06/0.2907, allocations: 0 / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-06/0.2907, allocations: 0 / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.2907, allocations: 3.984 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.374e-05/0.2907, allocations: 83.31 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2907, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001902/0.2909, allocations: 12 kB / 1.056 GB, free: 4.469 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 (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.0001617/0.2911, allocations: 107.2 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.943e-05/0.2912, allocations: 11.94 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2912, allocations: 0 / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.288e-06/0.2912, allocations: 3.984 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.2913, allocations: 5.672 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001538/0.2915, allocations: 88.78 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.2917, allocations: 0.669 MB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.654e-05/0.2918, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.224e-05/0.2918, allocations: 11.44 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2918, allocations: 0 / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of Templates: time 0.002342/0.2941, allocations: 464.4 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches