Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.0007652/0.0007652, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004736/0.004736, allocations: 170 kB / 16.26 MB, free: 6.613 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.549/2.549, allocations: 437.8 MB / 0.7121 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005504/0.0005504, allocations: 11.98 kB / 0.8728 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7505/0.7511, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0008736/0.7521, allocations: 317.4 kB / 1.023 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003034/0.7524, allocations: 55.78 kB / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.289e-05/0.7524, allocations: 0 / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.66e-05/0.7524, allocations: 3.938 kB / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-06/0.7524, allocations: 0 / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.7527, allocations: 8 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.008e-05/0.7527, allocations: 3.984 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.652e-05/0.7528, allocations: 4 kB / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.524e-05/0.7528, allocations: 0 / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.961e-05/0.7528, allocations: 3.984 kB / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.7528, allocations: 0 / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.869e-05/0.753, allocations: 27.98 kB / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.014e-05/0.753, allocations: 0 / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.753, allocations: 25.7 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.991e-05/0.7531, allocations: 15.91 kB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.7531, allocations: 4 kB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.314e-06/0.7531, allocations: 4 kB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.788e-06/0.7531, allocations: 0 / 1.023 GB, free: 15.34 MB / 0.7794 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.0002733/0.7534, allocations: 307.6 kB / 1.024 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.7534, allocations: 8.094 kB / 1.024 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.7537, allocations: 20.91 kB / 1.024 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.031e-05/0.7538, allocations: 164.4 kB / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.7538, allocations: 384 / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.7538, allocations: 8.25 kB / 1.024 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.754, allocations: 38.25 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.754, allocations: 192 / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.754, allocations: 3.938 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.754, allocations: 0 / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.79e-05/0.7541, allocations: 11.98 kB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.7543, allocations: 145.7 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8e-05/0.7544, allocations: 26.59 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.145e-05/0.7544, allocations: 12.86 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.7544, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.7545, allocations: 30.56 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.7545, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0002276/0.7547, allocations: 53.7 kB / 1.024 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.7547, allocations: 55.44 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.828e-05/0.7548, allocations: 89.86 kB / 1.024 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.7548, allocations: 25.7 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.693e-05/0.7548, allocations: 84.14 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.7549, allocations: 3.906 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.7549, allocations: 9.719 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.755, allocations: 314.8 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.574e-05/0.7551, allocations: 7.938 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.891e-05/0.7551, allocations: 11.98 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.599e-05/0.7552, allocations: 16.84 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7552, allocations: 0 / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001152/0.7553, allocations: 41.69 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.7554, allocations: 5.719 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.7554, allocations: 0 / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.7554, allocations: 8.031 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.713e-05/0.7555, allocations: 4 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.7555, allocations: 0 / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.34e-05/0.7555, allocations: 3.984 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.7555, allocations: 4 kB / 1.025 GB, free: 13.62 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.066e-05/0.7556, allocations: 110.3 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-06/0.7556, allocations: 3.938 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.7557, allocations: 11.05 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.7557, allocations: 4 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.7557, allocations: 7.938 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.7557, allocations: 0 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.276e-05/0.7558, allocations: 153.7 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.7558, allocations: 0 / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.7558, allocations: 4 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.7558, allocations: 0 / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.7559, allocations: 3.938 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.7559, allocations: 3.984 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.7559, allocations: 0 / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.756, allocations: 69.12 kB / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.756, allocations: 77.11 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.7561, allocations: 3.938 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.52e-05/0.7561, allocations: 3.984 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.7561, allocations: 3.938 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.7561, allocations: 4 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.453e-05/0.7562, allocations: 79.31 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7562, allocations: 0 / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001664/0.7563, allocations: 0 / 1.025 GB, free: 13 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 (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.0001222/0.7565, allocations: 95.25 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001295/0.7566, allocations: 11.98 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.7566, allocations: 0 / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.552e-05/0.7567, allocations: 16.05 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.7568, allocations: 4.219 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.7571, allocations: 78.75 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.7573, allocations: 0.6692 MB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.835e-05/0.7573, allocations: 8.062 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.7574, allocations: 11.38 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.7574, allocations: 3.938 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of Templates: time 0.002034/0.7594, allocations: 223.4 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches