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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001675/0.001675, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.437/2.437, allocations: 390.2 MB / 0.6647 GB, free: 408 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001414, allocations: 63.91 kB / 0.8125 GB, free: 14.44 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7882/0.7896, allocations: 140.4 MB / 0.9496 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.002016/0.7917, allocations: 0.5857 MB / 0.9502 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002562/0.792, allocations: 50.78 kB / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.878e-05/0.792, allocations: 1.375 kB / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.05e-05/0.792, allocations: 0 / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.792, allocations: 0 / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.7923, allocations: 12.05 kB / 0.9502 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.386e-05/0.7923, allocations: 9.359 kB / 0.9502 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.569e-05/0.7924, allocations: 1.375 kB / 0.9502 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.7924, allocations: 1.375 kB / 0.9502 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.285e-05/0.7924, allocations: 9.312 kB / 0.9502 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.7924, allocations: 0 / 0.9502 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.7926, allocations: 21.59 kB / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.112e-05/0.7926, allocations: 1.375 kB / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.661e-05/0.7926, allocations: 0 / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.926e-05/0.7927, allocations: 18.84 kB / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.7927, allocations: 0 / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7927, allocations: 0 / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.954e-06/0.7927, allocations: 0 / 0.9503 GB, free: 8.613 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.0002619/0.793, allocations: 315.7 kB / 0.9506 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.793, allocations: 13.62 kB / 0.9506 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002642/0.7933, allocations: 17.16 kB / 0.9506 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.708e-05/0.7933, allocations: 161.8 kB / 0.9508 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.7934, allocations: 384 / 0.9508 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.7934, allocations: 1.75 kB / 0.9508 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.7935, allocations: 40.94 kB / 0.9508 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.7935, allocations: 5.547 kB / 0.9508 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.7935, allocations: 7.938 kB / 0.9508 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.7936, allocations: 0 / 0.9508 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.762e-05/0.7936, allocations: 9.484 kB / 0.9508 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.7938, allocations: 147 kB / 0.951 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.231e-05/0.7938, allocations: 18.7 kB / 0.951 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.138e-05/0.7939, allocations: 16.97 kB / 0.951 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.7939, allocations: 4 kB / 0.951 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.7939, allocations: 35.88 kB / 0.951 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.7939, allocations: 0 / 0.951 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002404/0.7942, allocations: 52.55 kB / 0.9511 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.171e-05/0.7942, allocations: 51.41 kB / 0.9511 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.774e-05/0.7942, allocations: 91.23 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.7943, allocations: 29.83 kB / 0.9513 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.102e-05/0.7943, allocations: 80.14 kB / 0.9513 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.7943, allocations: 9.219 kB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/0.7943, allocations: 15.09 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.463e-05/0.7944, allocations: 310.8 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.775e-05/0.7944, allocations: 8.109 kB / 0.9517 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.06e-05/0.7945, allocations: 6.688 kB / 0.9517 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.86e-05/0.7946, allocations: 19.78 kB / 0.9517 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.7946, allocations: 0 / 0.9517 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001135/0.7947, allocations: 43.09 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.7947, allocations: 4.938 kB / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.7947, allocations: 0 / 0.9517 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.7948, allocations: 13.36 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.916e-05/0.7948, allocations: 2.75 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.7948, allocations: 4.031 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.259e-05/0.7949, allocations: 1.469 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.7949, allocations: 1.469 kB / 0.9518 GB, free: 6.973 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 5.188e-05/0.7949, allocations: 107.3 kB / 0.9519 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-06/0.795, allocations: 3.984 kB / 0.9519 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.757e-05/0.795, allocations: 7.062 kB / 0.9519 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.795, allocations: 5.062 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.795, allocations: 0 / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.795, allocations: 4 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.186e-05/0.7951, allocations: 143.2 kB / 0.952 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.7951, allocations: 0 / 0.952 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.7951, allocations: 7.578 kB / 0.952 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.7951, allocations: 0 / 0.952 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.7951, allocations: 5.281 kB / 0.952 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.7951, allocations: 0 / 0.952 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7952, allocations: 0 / 0.952 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.7953, allocations: 71.89 kB / 0.9521 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.7953, allocations: 77.11 kB / 0.9522 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.7953, allocations: 5.188 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.107e-05/0.7954, allocations: 5.281 kB / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.7954, allocations: 0 / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.7954, allocations: 1.5 kB / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.169e-05/0.7954, allocations: 75.28 kB / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.91e-07/0.7954, allocations: 0 / 0.9523 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001685/0.7956, allocations: 5.625 kB / 0.9523 GB, free: 6.387 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 9.959e-05/0.7957, allocations: 109.4 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001443/0.7958, allocations: 11.36 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.7958, allocations: 0 / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.275e-05/0.7959, allocations: 4.688 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.796, allocations: 8.562 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002147/0.7962, allocations: 84.91 kB / 0.9525 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.303e-05/0.7964, allocations: 0.6781 MB / 0.9531 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.248e-05/0.7964, allocations: 1.5 kB / 0.9531 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.965e-05/0.7964, allocations: 12.47 kB / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.7964, allocations: 0 / 0.9531 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of Templates: time 0.00188/0.7983, allocations: 224.5 kB / 0.9534 GB, free: 5.348 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/jenkins/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