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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001761/0.001761, allocations: 101.8 kB / 16.27 MB, free: 5.969 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.001762/0.001762, allocations: 193.7 kB / 17.2 MB, free: 5.594 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.494/1.494, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.863/2.863, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.95 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.809/0.8109, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001891/0.8129, allocations: 0.5801 MB / 1.083 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002998/0.8132, allocations: 53.03 kB / 1.084 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.747e-05/0.8132, allocations: 0.5 kB / 1.084 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.8132, allocations: 0.5625 kB / 1.084 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.8133, allocations: 0 / 1.084 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.8135, allocations: 17 kB / 1.084 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.256e-05/0.8136, allocations: 2.359 kB / 1.084 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.8136, allocations: 5.859 kB / 1.084 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.284e-05/0.8137, allocations: 0 / 1.084 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.833e-05/0.8137, allocations: 1.156 kB / 1.084 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.8137, allocations: 0 / 1.084 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.8138, allocations: 25.38 kB / 1.084 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.318e-06/0.8138, allocations: 7.938 kB / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.68e-05/0.8138, allocations: 0.6875 kB / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.873e-05/0.8139, allocations: 11.58 kB / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.8139, allocations: 0 / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.8139, allocations: 0 / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.814, allocations: 0 / 1.084 GB, free: 1.215 MB / 0.8262 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.0002139/0.8142, allocations: 326.3 kB / 1.084 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.8142, allocations: 9.406 kB / 1.084 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.8145, allocations: 18.45 kB / 1.084 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.565e-05/0.8146, allocations: 161.7 kB / 1.084 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.8146, allocations: 384 / 1.084 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.8146, allocations: 1.406 kB / 1.084 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.8147, allocations: 39.84 kB / 1.084 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.8147, allocations: 192 / 1.084 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.8148, allocations: 3.938 kB / 1.084 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.8148, allocations: 1.125 kB / 1.084 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.956e-05/0.8149, allocations: 12.5 kB / 1.084 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001069/0.815, allocations: 149 kB / 1.084 GB, free: 432 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.429e-05/0.815, allocations: 20.86 kB / 1.084 GB, free: 408 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.101e-05/0.8151, allocations: 14.27 kB / 1.084 GB, free: 396 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.8151, allocations: 0.9688 kB / 1.084 GB, free: 396 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.8152, allocations: 31.83 kB / 1.084 GB, free: 356 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.8152, allocations: 0 / 1.084 GB, free: 356 kB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0002546/0.8154, allocations: 55.62 kB / 1.084 GB, free: 312 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.8155, allocations: 52.62 kB / 1.084 GB, free: 248 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.576e-05/0.8155, allocations: 98.45 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.635e-06/0.8155, allocations: 25.7 kB / 1.085 GB, free: 108 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 1.124e-05/0.8155, allocations: 81.52 kB / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.8156, allocations: 0 / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.8156, allocations: 13.95 kB / 1.085 GB, free: 8 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.8158, allocations: 311.5 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.992e-05/0.8158, allocations: 3.781 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.481e-05/0.8159, allocations: 9.5 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.816, allocations: 19.84 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.816, allocations: 0 / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001351/0.8161, allocations: 43.95 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.8161, allocations: 5.469 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.8162, allocations: 0.75 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.8162, allocations: 4.438 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.328e-05/0.8163, allocations: 12.42 kB / 1.085 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.8163, allocations: 1.562 kB / 1.085 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.609e-05/0.8163, allocations: 6.344 kB / 1.085 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.8163, allocations: 0.5625 kB / 1.085 GB, free: 15.63 MB / 0.8419 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 9.237e-05/0.8164, allocations: 107.7 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.8164, allocations: 5.25 kB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.8165, allocations: 11.72 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.8165, allocations: 5.094 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.8165, allocations: 0 / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.8165, allocations: 1.219 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.8166, allocations: 144.2 kB / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.8166, allocations: 1.25 kB / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.719e-05/0.8167, allocations: 4.281 kB / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.8167, allocations: 1.156 kB / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.8167, allocations: 4.688 kB / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.8167, allocations: 0 / 1.085 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.8167, allocations: 4.891 kB / 1.085 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.8169, allocations: 72.55 kB / 1.085 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.817, allocations: 78.39 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.817, allocations: 5.75 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.401e-05/0.817, allocations: 2.797 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.817, allocations: 0.7031 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.817, allocations: 1.75 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.497e-05/0.8171, allocations: 79.31 kB / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8171, allocations: 0 / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001783/0.8173, allocations: 1.125 kB / 1.086 GB, free: 15.05 MB / 0.8419 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.0001375/0.8174, allocations: 98.94 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001466/0.8176, allocations: 12.36 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8176, allocations: 3.938 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.377e-05/0.8176, allocations: 14.67 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.8178, allocations: 3.031 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002972/0.8181, allocations: 120 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.8184, allocations: 0.6711 MB / 1.086 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.765e-05/0.8184, allocations: 8.234 kB / 1.086 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.8185, allocations: 0 / 1.086 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of Templates: time 0.001917/0.8204, allocations: 386 kB / 1.087 GB, free: 14.11 MB / 0.8419 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=400 -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