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.007774/0.007774, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001704/0.001704, allocations: 199.8 kB / 16.68 MB, free: 5.969 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.355 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.463/2.463, allocations: 390.2 MB / 0.6648 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.72 kB / 0.9509 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3275, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00188/0.3295, allocations: 0.5766 MB / 1.089 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002921/0.3298, allocations: 51.72 kB / 1.089 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.955e-05/0.3298, allocations: 4 kB / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.962e-05/0.3299, allocations: 0 / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.713e-06/0.3299, allocations: 0 / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.3301, allocations: 15.92 kB / 1.089 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.244e-05/0.3302, allocations: 0 / 1.089 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.176e-05/0.3302, allocations: 4 kB / 1.089 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.455e-05/0.3303, allocations: 0 / 1.089 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.219e-05/0.3303, allocations: 0 / 1.089 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.3303, allocations: 0 / 1.089 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.3304, allocations: 27.97 kB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.3304, allocations: 3.984 kB / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.3305, allocations: 0 / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.279e-05/0.3306, allocations: 11.98 kB / 1.089 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3306, allocations: 4 kB / 1.089 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.815e-06/0.3306, allocations: 0 / 1.089 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.3306, allocations: 7.875 kB / 1.089 GB, free: 0.7656 MB / 0.8419 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.0003008/0.3309, allocations: 315.5 kB / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.331, allocations: 8.031 kB / 1.089 GB, free: 408 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.3312, allocations: 20.91 kB / 1.089 GB, free: 388 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.3313, allocations: 164.4 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.3314, allocations: 384 / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.3314, allocations: 8.312 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.3315, allocations: 34.25 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.3315, allocations: 192 / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.3316, allocations: 3.938 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-06/0.3316, allocations: 0 / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.985e-05/0.3317, allocations: 11.98 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.3318, allocations: 149.7 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.202e-05/0.3319, allocations: 26.94 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.627e-05/0.332, allocations: 12.78 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.332, allocations: 4.062 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.332, allocations: 34.56 kB / 1.089 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3321, allocations: 0 / 1.089 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0002539/0.3323, allocations: 49.61 kB / 1.089 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.3324, allocations: 51.41 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.265e-05/0.3324, allocations: 89.86 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.3324, allocations: 25.7 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.346e-05/0.3325, allocations: 80.27 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.3325, allocations: 8 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.3325, allocations: 13.72 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3327, allocations: 314.8 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.207e-05/0.3327, allocations: 11.92 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.546e-05/0.3328, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.573e-05/0.3329, allocations: 20.91 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3329, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001272/0.333, allocations: 45.67 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.333, allocations: 8 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.333, allocations: 0 / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3331, allocations: 3.938 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.584e-05/0.3331, allocations: 4 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3332, allocations: 3.938 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.421e-05/0.3332, allocations: 3.953 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.3332, allocations: 8.016 kB / 1.09 GB, free: 15.04 MB / 0.8575 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.65e-05/0.3333, allocations: 113.8 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.3333, allocations: 4 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.688e-05/0.3333, allocations: 7.062 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3334, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3334, allocations: 3.938 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3334, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.662e-05/0.3335, allocations: 149.7 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3335, allocations: 4 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.162e-05/0.3335, allocations: 0 / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.3335, allocations: 4 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3336, allocations: 3.938 kB / 1.09 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3336, allocations: 0 / 1.09 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3336, allocations: 0 / 1.09 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.3337, allocations: 65.11 kB / 1.09 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.3338, allocations: 85.14 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.3338, allocations: 3.938 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.099e-05/0.3338, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.3338, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.3339, allocations: 3.938 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.35e-05/0.3339, allocations: 83.27 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3339, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001775/0.3341, allocations: 4 kB / 1.091 GB, free: 14.41 MB / 0.8575 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.3342, allocations: 99.25 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001522/0.3344, allocations: 11.98 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3344, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.453e-05/0.3344, allocations: 4 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.3346, allocations: 7.984 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002744/0.3349, allocations: 91.42 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3352, allocations: 0.6729 MB / 1.091 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.534e-05/0.3352, allocations: 4 kB / 1.091 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.3352, allocations: 7.438 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3352, allocations: 3.938 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of Templates: time 0.002277/0.3375, allocations: 222.2 kB / 1.092 GB, free: 13.24 MB / 0.8575 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