Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.005967/0.005967, allocations: 100 kB / 15.73 MB, free: 6.062 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.001314/0.001314, allocations: 193.9 kB / 16.67 MB, free: 5.973 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.834/2.834, allocations: 469.8 MB / 0.7425 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 72.11 kB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3042, allocations: 159.1 MB / 1.221 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001606/0.3058, allocations: 0.5739 MB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002859/0.3061, allocations: 55.73 kB / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.3061, allocations: 0 / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.3061, allocations: 0 / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.263e-06/0.3062, allocations: 4 kB / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00028/0.3064, allocations: 15.91 kB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.551e-05/0.3065, allocations: 8 kB / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.572e-05/0.3065, allocations: 11.91 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.288e-05/0.3065, allocations: 0 / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.262e-05/0.3066, allocations: 0 / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.3066, allocations: 0 / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.3067, allocations: 19.98 kB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.053e-05/0.3067, allocations: 0 / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.3067, allocations: 0 / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.02e-05/0.3068, allocations: 23.95 kB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3068, allocations: 4 kB / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3068, allocations: 0 / 1.221 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.3068, allocations: 0 / 1.221 GB, free: 13.04 MB / 0.9825 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.0003125/0.3071, allocations: 317.7 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3072, allocations: 8.031 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002731/0.3075, allocations: 20.84 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.169e-05/0.3075, allocations: 168.4 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.3076, allocations: 4.375 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.3076, allocations: 4.312 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.3077, allocations: 38.25 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.3077, allocations: 192 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3077, allocations: 3.938 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3078, allocations: 0 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.914e-05/0.3078, allocations: 11.98 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00014/0.308, allocations: 145.7 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.619e-05/0.3081, allocations: 22.59 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.9e-05/0.3081, allocations: 18.7 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3082, allocations: 0 / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.3082, allocations: 34.55 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3082, allocations: 0 / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0002496/0.3084, allocations: 49.62 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.3085, allocations: 51.41 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.64e-05/0.3085, allocations: 89.86 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.3085, allocations: 25.7 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.743e-05/0.3085, allocations: 80.14 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.3086, allocations: 0 / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.3086, allocations: 21.7 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3087, allocations: 315 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.118e-05/0.3088, allocations: 7.938 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.3088, allocations: 7.984 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.432e-05/0.3089, allocations: 12.84 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3089, allocations: 0 / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001182/0.309, allocations: 41.78 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.309, allocations: 8 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.309, allocations: 3.938 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.309, allocations: 3.938 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.138e-05/0.3091, allocations: 11.98 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3091, allocations: 0 / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.268e-05/0.3091, allocations: 0 / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-06/0.3092, allocations: 4 kB / 1.223 GB, free: 11.32 MB / 0.9825 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 6.7e-05/0.3092, allocations: 111.4 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-06/0.3092, allocations: 7.938 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.3093, allocations: 7.062 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3093, allocations: 0 / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3093, allocations: 0 / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3093, allocations: 7.984 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.318e-05/0.3094, allocations: 141.7 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3094, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.372e-05/0.3094, allocations: 7.984 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3094, allocations: 0 / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.3094, allocations: 3.938 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3094, allocations: 8 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3094, allocations: 0 / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.3095, allocations: 65.12 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.534e-05/0.3096, allocations: 77.11 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.3096, allocations: 7.922 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.104e-05/0.3096, allocations: 0 / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.538e-05/0.3096, allocations: 4.031 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-06/0.3096, allocations: 7.938 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.256e-05/0.3097, allocations: 75.28 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3097, allocations: 0 / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001792/0.3098, allocations: 0 / 1.223 GB, free: 10.71 MB / 0.9825 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.0001225/0.31, allocations: 103.2 kB / 1.223 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000143/0.3101, allocations: 11.98 kB / 1.223 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3101, allocations: 4.062 kB / 1.223 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.498e-05/0.3102, allocations: 7.984 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.3103, allocations: 2.031 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.3105, allocations: 92.08 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.3108, allocations: 0.669 MB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.504e-05/0.3108, allocations: 12.05 kB / 1.224 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.3108, allocations: 11.42 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.3108, allocations: 3.938 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of Templates: time 0.001914/0.3127, allocations: 230 kB / 1.224 GB, free: 9.512 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches