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.001099/0.001098, allocations: 103 kB / 15.06 MB, free: 1.098 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.001357/0.001357, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.803/2.803, allocations: 436.5 MB / 0.7104 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000534/0.0005341, allocations: 12 kB / 0.8708 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8094/0.8099, allocations: 153.6 MB / 1.021 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.000709/0.8107, allocations: 317.4 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001899/0.8109, allocations: 47.89 kB / 1.021 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.236e-05/0.8109, allocations: 0 / 1.021 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.526e-06/0.8109, allocations: 3.938 kB / 1.021 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.978e-06/0.8109, allocations: 0 / 1.021 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.8111, allocations: 15.92 kB / 1.021 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 2.893e-05/0.8112, allocations: 7.938 kB / 1.021 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.8112, allocations: 0 / 1.021 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.172e-05/0.8112, allocations: 0 / 1.021 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.461e-05/0.8112, allocations: 4 kB / 1.021 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 7.494e-06/0.8113, allocations: 0 / 1.021 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.8113, allocations: 19.97 kB / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.63e-06/0.8114, allocations: 0 / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.8114, allocations: 25.7 kB / 1.021 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 5.411e-05/0.8114, allocations: 11.97 kB / 1.021 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.8114, allocations: 0 / 1.021 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8115, allocations: 4 kB / 1.021 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.8115, allocations: 4 kB / 1.021 GB, free: 0.5742 MB / 0.7637 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.0002276/0.8117, allocations: 303.4 kB / 1.022 GB, free: 236 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.8117, allocations: 12.05 kB / 1.022 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002555/0.812, allocations: 23.97 kB / 1.022 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.464e-05/0.8121, allocations: 159.1 kB / 1.022 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.8121, allocations: 64 / 1.022 GB, free: 16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.8121, allocations: 3.984 kB / 1.022 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.8123, allocations: 45.58 kB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.8123, allocations: 0 / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.8123, allocations: 0 / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.8123, allocations: 3.984 kB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.489e-05/0.8124, allocations: 11.98 kB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.8125, allocations: 149.6 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.634e-05/0.8126, allocations: 22.59 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.8127, allocations: 4 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.8127, allocations: 34.5 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.8127, allocations: 0 / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0002305/0.8129, allocations: 49.69 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.813, allocations: 51.41 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.117e-05/0.813, allocations: 89.86 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.813, allocations: 29.83 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.8131, allocations: 88.14 kB / 1.022 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.8131, allocations: 3.906 kB / 1.022 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/0.8131, allocations: 0 / 1.022 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.8132, allocations: 310.8 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.871e-05/0.8133, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.635e-05/0.8133, allocations: 7.984 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.726e-05/0.8134, allocations: 4.062 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.8134, allocations: 0 / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001147/0.8135, allocations: 49.61 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.8135, allocations: 4 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.8135, allocations: 3.938 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.8136, allocations: 3.953 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.378e-05/0.8136, allocations: 4 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.8136, allocations: 0 / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.478e-05/0.8137, allocations: 8.016 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.8137, allocations: 4 kB / 1.023 GB, free: 14.9 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.836e-05/0.8138, allocations: 109.8 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-06/0.8138, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.8138, allocations: 3.125 kB / 1.023 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.8138, allocations: 0 / 1.023 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.8138, allocations: 7.953 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.8138, allocations: 4 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.293e-05/0.8139, allocations: 145.7 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.814, allocations: 4 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/0.814, allocations: 4 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.814, allocations: 0 / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.814, allocations: 0 / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.814, allocations: 3.938 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.814, allocations: 3.938 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.8142, allocations: 77.06 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.017e-05/0.8142, allocations: 77.11 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.8142, allocations: 0 / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.041e-05/0.8143, allocations: 0 / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.569e-05/0.8143, allocations: 7.984 kB / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.8143, allocations: 0 / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.501e-05/0.8143, allocations: 79.23 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8143, allocations: 0 / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001729/0.8145, allocations: 0 / 1.023 GB, free: 14.29 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.8146, allocations: 99.28 kB / 1.023 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000129/0.8148, allocations: 19.92 kB / 1.023 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.8148, allocations: 0 / 1.023 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.34e-05/0.8148, allocations: 7.984 kB / 1.023 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001112/0.815, allocations: 5.969 kB / 1.023 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002997/0.8153, allocations: 78.88 kB / 1.023 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.8156, allocations: 0.6692 MB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.023e-05/0.8157, allocations: 8 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.8157, allocations: 7.438 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.8157, allocations: 0 / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.002535/0.8183, allocations: 220.1 kB / 1.024 GB, free: 13.12 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches