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.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.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.001801/0.001801, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.00209/0.00209, allocations: 192.3 kB / 17.29 MB, free: 5.527 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.45/2.45, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 67.53 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2846, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001765/0.2864, allocations: 0.581 MB / 1.027 GB, free: 1.484 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002469/0.2867, allocations: 63.7 kB / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.358e-05/0.2867, allocations: 0 / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.2867, allocations: 0 / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.648e-06/0.2867, allocations: 4 kB / 1.027 GB, free: 1.418 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.287, allocations: 15.92 kB / 1.027 GB, free: 1.402 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 3.585e-05/0.287, allocations: 4 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.2871, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.408e-05/0.2871, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.241e-05/0.2871, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.2871, allocations: 0 / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.2872, allocations: 23.97 kB / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.2872, allocations: 0 / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.693e-05/0.2873, allocations: 7.984 kB / 1.027 GB, free: 1.363 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.466e-05/0.2873, allocations: 11.98 kB / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2874, allocations: 0 / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of FrontEnd: time 4.258e-06/0.2874, allocations: 0 / 1.027 GB, free: 1.352 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.2874, allocations: 3.938 kB / 1.027 GB, free: 1.348 MB / 0.795 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.0002548/0.2876, allocations: 315.6 kB / 1.028 GB, free: 0.9883 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2877, allocations: 16.02 kB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002483/0.2879, allocations: 16.91 kB / 1.028 GB, free: 0.957 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.782e-05/0.288, allocations: 164.3 kB / 1.028 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.288, allocations: 4.375 kB / 1.028 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-06/0.288, allocations: 384 / 1.028 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.2882, allocations: 34.25 kB / 1.028 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.2882, allocations: 192 / 1.028 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.2882, allocations: 3.938 kB / 1.028 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.2882, allocations: 0 / 1.028 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.976e-05/0.2883, allocations: 11.98 kB / 1.028 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.2884, allocations: 153.7 kB / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.37e-05/0.2885, allocations: 26.53 kB / 1.028 GB, free: 476 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.883e-05/0.2886, allocations: 15.3 kB / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.2886, allocations: 0 / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.2886, allocations: 30.56 kB / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.2886, allocations: 0 / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0002089/0.2888, allocations: 53.62 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.2889, allocations: 55.39 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.378e-05/0.2889, allocations: 89.86 kB / 1.028 GB, free: 192 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.2889, allocations: 29.7 kB / 1.028 GB, free: 156 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.327e-05/0.289, allocations: 80.14 kB / 1.028 GB, free: 72 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.289, allocations: 0 / 1.028 GB, free: 72 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.289, allocations: 13.66 kB / 1.028 GB, free: 52 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.2892, allocations: 318.9 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.69e-05/0.2893, allocations: 7.984 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.695e-05/0.2893, allocations: 8 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.27e-05/0.2894, allocations: 16.84 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2894, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001176/0.2895, allocations: 41.75 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.2896, allocations: 4 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2896, allocations: 0 / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2896, allocations: 7.938 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.593e-05/0.2897, allocations: 3.984 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2897, allocations: 7.875 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.366e-05/0.2897, allocations: 4 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.2897, allocations: 0 / 1.029 GB, free: 15.62 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 7.847e-05/0.2898, allocations: 109.8 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.886e-06/0.2898, allocations: 8.016 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.2899, allocations: 15.06 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2899, allocations: 0 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2899, allocations: 4 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2899, allocations: 0 / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.29, allocations: 141.7 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.29, allocations: 0 / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.29, allocations: 7.984 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.29, allocations: 0 / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.2901, allocations: 7.938 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2901, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2901, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.2902, allocations: 69.11 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.866e-05/0.2902, allocations: 77.11 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.2903, allocations: 3.938 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.222e-05/0.2903, allocations: 7.938 kB / 1.029 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.2903, allocations: 4.031 kB / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-06/0.2903, allocations: 0 / 1.029 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.357e-05/0.2904, allocations: 75.28 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2904, allocations: 0 / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001795/0.2905, allocations: 4 kB / 1.029 GB, free: 15 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.0001051/0.2907, allocations: 99.23 kB / 1.029 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001349/0.2908, allocations: 15.98 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2908, allocations: 0 / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.143e-05/0.2909, allocations: 4 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.291, allocations: 0 / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002187/0.2912, allocations: 88.97 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.2915, allocations: 0.6844 MB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.913e-05/0.2916, allocations: 4.125 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.144e-05/0.2916, allocations: 7.438 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.2916, allocations: 0 / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of Templates: time 0.001787/0.2934, allocations: 230.6 kB / 1.03 GB, free: 13.81 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 -s gbode -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/jenkins1/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