Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0057/0.0057, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001411/0.001412, allocations: 194.3 kB / 16.79 MB, free: 6.254 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.2 MB / 0.6649 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 67.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6649/0.6663, allocations: 140.4 MB / 0.9496 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001892/0.6682, allocations: 0.6459 MB / 0.9502 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003079/0.6686, allocations: 56.89 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.159e-05/0.6686, allocations: 0 / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.912e-05/0.6686, allocations: 0 / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.6686, allocations: 1.188 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.6688, allocations: 14.45 kB / 0.9503 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.28e-05/0.6689, allocations: 2.219 kB / 0.9503 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.237e-05/0.669, allocations: 5.203 kB / 0.9503 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.719e-05/0.669, allocations: 1.281 kB / 0.9503 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.458e-05/0.669, allocations: 0 / 0.9503 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.669, allocations: 1.094 kB / 0.9503 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.6691, allocations: 21.16 kB / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.468e-06/0.6692, allocations: 5.625 kB / 0.9503 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.54e-05/0.6692, allocations: 0 / 0.9503 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.885e-05/0.6692, allocations: 14.2 kB / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6693, allocations: 4 kB / 0.9503 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.62e-07/0.6693, allocations: 0 / 0.9503 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.6693, allocations: 0 / 0.9503 GB, free: 8.609 MB / 0.7169 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.0002374/0.6695, allocations: 310.6 kB / 0.9506 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.6696, allocations: 8.938 kB / 0.9506 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002746/0.6698, allocations: 22.67 kB / 0.9507 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.824e-05/0.6699, allocations: 160.4 kB / 0.9508 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.6699, allocations: 6.031 kB / 0.9508 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.6699, allocations: 4.312 kB / 0.9508 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.6701, allocations: 34.41 kB / 0.9509 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.6701, allocations: 192 / 0.9509 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.6701, allocations: 3.938 kB / 0.9509 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.6701, allocations: 1.375 kB / 0.9509 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.449e-05/0.6702, allocations: 17.3 kB / 0.9509 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.6704, allocations: 142.6 kB / 0.951 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.479e-05/0.6704, allocations: 27.19 kB / 0.951 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.608e-05/0.6705, allocations: 11.69 kB / 0.9511 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.6705, allocations: 0 / 0.9511 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.6705, allocations: 39.72 kB / 0.9511 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.6706, allocations: 0 / 0.9511 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002264/0.6708, allocations: 52.72 kB / 0.9511 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.6708, allocations: 52.81 kB / 0.9512 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.22e-05/0.6708, allocations: 93.84 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.637e-06/0.6709, allocations: 25.7 kB / 0.9513 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.574e-05/0.6709, allocations: 80.14 kB / 0.9514 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.6709, allocations: 5.344 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/0.6709, allocations: 11.12 kB / 0.9514 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.027e-05/0.671, allocations: 320.3 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.647e-05/0.6711, allocations: 6.797 kB / 0.9517 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.518e-05/0.6711, allocations: 7.125 kB / 0.9517 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.174e-05/0.6712, allocations: 15.28 kB / 0.9517 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6712, allocations: 0 / 0.9517 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001058/0.6713, allocations: 43.47 kB / 0.9518 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.6713, allocations: 9.625 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.6713, allocations: 0 / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.6713, allocations: 3.938 kB / 0.9518 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.836e-05/0.6714, allocations: 6.484 kB / 0.9518 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.6714, allocations: 5.266 kB / 0.9518 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.227e-05/0.6715, allocations: 1.062 kB / 0.9518 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.6715, allocations: 1.188 kB / 0.9518 GB, free: 6.977 MB / 0.7169 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 4.406e-05/0.6715, allocations: 110.8 kB / 0.9519 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.6715, allocations: 4 kB / 0.9519 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.6716, allocations: 12.67 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.6716, allocations: 0 / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.6716, allocations: 3.938 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6716, allocations: 1.688 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.377e-05/0.6717, allocations: 145.7 kB / 0.9521 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.6717, allocations: 0.9688 kB / 0.9521 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.6717, allocations: 7.109 kB / 0.9521 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.6717, allocations: 0 / 0.9521 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.6717, allocations: 3.938 kB / 0.9521 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.6717, allocations: 5.562 kB / 0.9521 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.6717, allocations: 0 / 0.9521 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.6719, allocations: 67.81 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.697e-05/0.6719, allocations: 81.09 kB / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.6719, allocations: 3.938 kB / 0.9522 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.015e-05/0.6719, allocations: 1.656 kB / 0.9522 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.672, allocations: 9.453 kB / 0.9522 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.672, allocations: 0 / 0.9522 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.16e-05/0.672, allocations: 75.28 kB / 0.9523 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.672, allocations: 5.406 kB / 0.9523 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001782/0.6722, allocations: 1.406 kB / 0.9523 GB, free: 6.375 MB / 0.7169 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.0001162/0.6723, allocations: 96.53 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.6724, allocations: 19.69 kB / 0.9524 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6725, allocations: 4 kB / 0.9524 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.141e-05/0.6725, allocations: 7.844 kB / 0.9524 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.6726, allocations: 3.219 kB / 0.9524 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002256/0.6729, allocations: 104.8 kB / 0.9525 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.673, allocations: 0.6707 MB / 0.9532 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.899e-05/0.673, allocations: 12.73 kB / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.673, allocations: 0 / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of Templates: time 0.001502/0.6745, allocations: 383.9 kB / 0.9536 GB, free: 5.254 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches