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 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.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.001479/0.001479, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001931/0.001931, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.699/2.699, allocations: 461.8 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 68.86 kB / 0.8984 GB, free: 37.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3764, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002607/0.3791, allocations: 0.6581 MB / 1.053 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003565/0.3795, allocations: 51.84 kB / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.428e-05/0.3795, allocations: 0 / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.3795, allocations: 0 / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.432e-06/0.3796, allocations: 0 / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002694/0.3798, allocations: 15.94 kB / 1.053 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.908e-05/0.3799, allocations: 4 kB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.159e-05/0.38, allocations: 7.984 kB / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.053e-05/0.38, allocations: 0 / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.051e-05/0.3801, allocations: 0 / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3801, allocations: 4 kB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.3802, allocations: 15.98 kB / 1.053 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.3802, allocations: 3.984 kB / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.848e-05/0.3803, allocations: 0 / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.3804, allocations: 19.92 kB / 1.053 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3804, allocations: 0 / 1.053 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3804, allocations: 0 / 1.053 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.3804, allocations: 0 / 1.053 GB, free: 8.078 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.0003479/0.3808, allocations: 319.5 kB / 1.053 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3808, allocations: 8.031 kB / 1.053 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003769/0.3812, allocations: 24.91 kB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.3814, allocations: 160.4 kB / 1.053 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.3814, allocations: 4.359 kB / 1.053 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.3814, allocations: 384 / 1.053 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.3816, allocations: 38.25 kB / 1.053 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.3816, allocations: 192 / 1.053 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3817, allocations: 7.875 kB / 1.053 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3817, allocations: 3.984 kB / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.3818, allocations: 15.92 kB / 1.053 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/0.3821, allocations: 141.7 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.3822, allocations: 26.59 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.472e-05/0.3823, allocations: 12.92 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.3823, allocations: 0 / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3824, allocations: 30.56 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.3824, allocations: 0 / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0003419/0.3827, allocations: 53.55 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.3828, allocations: 51.41 kB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.899e-05/0.3828, allocations: 93.98 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3829, allocations: 29.7 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.3829, allocations: 80.14 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.383, allocations: 4 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.383, allocations: 17.7 kB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3832, allocations: 310.8 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.757e-05/0.3833, allocations: 4 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.3833, allocations: 11.98 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.3835, allocations: 12.84 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3835, allocations: 4 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002254/0.3838, allocations: 49.56 kB / 1.054 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3838, allocations: 4 kB / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3838, allocations: 0 / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3838, allocations: 3.938 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.579e-05/0.3839, allocations: 8.094 kB / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.384, allocations: 3.984 kB / 1.054 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.144e-05/0.384, allocations: 4 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.3841, allocations: 0 / 1.054 GB, free: 6.344 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 9.815e-05/0.3842, allocations: 105.8 kB / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.3842, allocations: 0 / 1.054 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.3842, allocations: 7.062 kB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3843, allocations: 0 / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3843, allocations: 8 kB / 1.054 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3843, allocations: 0 / 1.054 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.3844, allocations: 153.7 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.3844, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.912e-05/0.3845, allocations: 4 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3845, allocations: 0 / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.3846, allocations: 7.922 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3846, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3846, allocations: 3.938 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.3848, allocations: 69.06 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.184e-05/0.3849, allocations: 77.11 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.3849, allocations: 3.938 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.713e-05/0.385, allocations: 3.984 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.488e-05/0.385, allocations: 8 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.385, allocations: 0 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.3851, allocations: 75.28 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3851, allocations: 4.031 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000323/0.3854, allocations: 0 / 1.055 GB, free: 5.73 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.0001446/0.3856, allocations: 99.25 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001899/0.3858, allocations: 15.92 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3858, allocations: 0 / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.719e-05/0.3859, allocations: 7.984 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.3861, allocations: 4.406 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003008/0.3864, allocations: 90.59 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.3867, allocations: 0.6731 MB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.896e-05/0.3868, allocations: 4 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.3868, allocations: 7.438 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.3868, allocations: 4 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of Templates: time 0.002573/0.3894, allocations: 221.8 kB / 1.056 GB, free: 4.547 MB / 0.8106 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=480 -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