Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") translateModel(Buildings.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002219/0.002219, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002279/0.002279, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.491/1.491, 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 12.0.0-master/package.mo): time 3.051/3.051, allocations: 482.3 MB / 0.7543 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 64 kB / 0.9233 GB, free: 29.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2997, allocations: 162.2 MB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001863/0.3016, allocations: 0.6377 MB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002318/0.3019, allocations: 63.72 kB / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.172e-05/0.3019, allocations: 0 / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.3019, allocations: 0 / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.3019, allocations: 0 / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.3022, allocations: 11.94 kB / 1.082 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.086e-05/0.3022, allocations: 11.98 kB / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.048e-05/0.3023, allocations: 3.984 kB / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.124e-05/0.3023, allocations: 0 / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 1.749e-05/0.3023, allocations: 0 / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.3023, allocations: 4 kB / 1.082 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.135e-05/0.3024, allocations: 19.98 kB / 1.082 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.3024, allocations: 0 / 1.082 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.272e-05/0.3024, allocations: 0 / 1.082 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.214e-05/0.3025, allocations: 19.97 kB / 1.082 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3025, allocations: 0 / 1.082 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3025, allocations: 0 / 1.082 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.3025, allocations: 0 / 1.082 GB, free: 12.83 MB / 0.8419 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.0003142/0.3028, allocations: 307.6 kB / 1.083 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3029, allocations: 8.031 kB / 1.083 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.3031, allocations: 28.84 kB / 1.083 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.3033, allocations: 168.4 kB / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.3033, allocations: 384 / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.3033, allocations: 384 / 1.083 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.3034, allocations: 42.19 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.3035, allocations: 192 / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.3035, allocations: 3.938 kB / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3035, allocations: 0 / 1.083 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.44e-05/0.3036, allocations: 15.98 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.3037, allocations: 141.7 kB / 1.083 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.63e-05/0.3038, allocations: 22.59 kB / 1.083 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.124e-05/0.3039, allocations: 12.92 kB / 1.083 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.3039, allocations: 0 / 1.083 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.3039, allocations: 42.48 kB / 1.083 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.3039, allocations: 0 / 1.083 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0002159/0.3042, allocations: 45.62 kB / 1.083 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.3042, allocations: 51.41 kB / 1.083 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.772e-05/0.3043, allocations: 89.86 kB / 1.083 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3043, allocations: 25.7 kB / 1.083 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.223e-05/0.3043, allocations: 80.14 kB / 1.084 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.3044, allocations: 8.031 kB / 1.084 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.3044, allocations: 25.7 kB / 1.084 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3045, allocations: 310.8 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.691e-05/0.3046, allocations: 7.938 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-05/0.3046, allocations: 7.984 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.353e-05/0.3047, allocations: 16.78 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3047, allocations: 8.062 kB / 1.084 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001158/0.3049, allocations: 37.69 kB / 1.084 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.3049, allocations: 4 kB / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3049, allocations: 0 / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.3049, allocations: 3.938 kB / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.686e-05/0.305, allocations: 7.984 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.305, allocations: 0 / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.601e-05/0.305, allocations: 8 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.305, allocations: 0 / 1.084 GB, free: 11.11 MB / 0.8419 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 8.406e-05/0.3051, allocations: 109.9 kB / 1.084 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-06/0.3051, allocations: 3.938 kB / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.3052, allocations: 7.062 kB / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3052, allocations: 0 / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3052, allocations: 11.94 kB / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3052, allocations: 3.984 kB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.3053, allocations: 141.7 kB / 1.084 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3053, allocations: 0 / 1.084 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.552e-05/0.3054, allocations: 11.98 kB / 1.084 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3054, allocations: 0 / 1.084 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3054, allocations: 3.938 kB / 1.084 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3054, allocations: 0 / 1.084 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3054, allocations: 0 / 1.084 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.3055, allocations: 65.12 kB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.3056, allocations: 77.11 kB / 1.084 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3056, allocations: 11.95 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.177e-05/0.3057, allocations: 4 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-06/0.3057, allocations: 0 / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.3057, allocations: 3.984 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.13e-05/0.3057, allocations: 75.28 kB / 1.084 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3057, allocations: 0 / 1.084 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001791/0.3059, allocations: 0 / 1.084 GB, free: 10.49 MB / 0.8419 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.0001378/0.3061, allocations: 103.2 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001576/0.3062, allocations: 23.98 kB / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3062, allocations: 0 / 1.085 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.425e-05/0.3063, allocations: 7.984 kB / 1.085 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.3064, allocations: 288 / 1.085 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002517/0.3067, allocations: 84.91 kB / 1.085 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.307, allocations: 0.673 MB / 1.085 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.503e-05/0.3071, allocations: 7.938 kB / 1.085 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.47e-05/0.3071, allocations: 7.438 kB / 1.085 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3071, allocations: 0 / 1.085 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of Templates: time 0.002286/0.3094, allocations: 239.7 kB / 1.086 GB, free: 9.293 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches