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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001357/0.001357, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01071/0.01071, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.443/1.443, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.845/2.845, allocations: 443.3 MB / 0.7175 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003485, allocations: 12.53 kB / 0.8796 GB, free: 41.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3274, allocations: 155.2 MB / 1.031 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.0006976/0.3281, allocations: 328.3 kB / 1.031 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002392/0.3284, allocations: 51.8 kB / 1.031 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.061e-05/0.3284, allocations: 4 kB / 1.031 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.019e-05/0.3284, allocations: 0 / 1.031 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-06/0.3284, allocations: 0 / 1.031 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.3286, allocations: 11.98 kB / 1.031 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 2.928e-05/0.3287, allocations: 3.938 kB / 1.031 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.317e-05/0.3287, allocations: 0 / 1.031 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.317e-05/0.3287, allocations: 0 / 1.031 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.797e-05/0.3287, allocations: 4 kB / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.3288, allocations: 4 kB / 1.031 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.871e-05/0.3288, allocations: 19.97 kB / 1.032 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.785e-06/0.3289, allocations: 0 / 1.032 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.3289, allocations: 29.69 kB / 1.032 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 6.881e-05/0.329, allocations: 19.98 kB / 1.032 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.329, allocations: 0 / 1.032 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.222e-06/0.329, allocations: 0 / 1.032 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.865e-06/0.329, allocations: 0 / 1.032 GB, free: 3.973 MB / 0.7794 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.0002467/0.3292, allocations: 315.5 kB / 1.032 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.3293, allocations: 8.031 kB / 1.032 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.3295, allocations: 20.91 kB / 1.032 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.396e-05/0.3296, allocations: 164.4 kB / 1.032 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3297, allocations: 4.375 kB / 1.032 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.3297, allocations: 384 / 1.032 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.3298, allocations: 34.25 kB / 1.032 GB, free: 3.344 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.3298, allocations: 192 / 1.032 GB, free: 3.344 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3298, allocations: 3.938 kB / 1.032 GB, free: 3.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.3298, allocations: 7.938 kB / 1.032 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.782e-05/0.3299, allocations: 7.984 kB / 1.032 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.3301, allocations: 153.6 kB / 1.032 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.334e-05/0.3302, allocations: 26.55 kB / 1.032 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.244e-05/0.3302, allocations: 12.91 kB / 1.032 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.3302, allocations: 0 / 1.032 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.3303, allocations: 34.56 kB / 1.032 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.3303, allocations: 0 / 1.032 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0002491/0.3305, allocations: 49.61 kB / 1.032 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.3306, allocations: 55.34 kB / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.388e-05/0.3306, allocations: 89.86 kB / 1.032 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.3306, allocations: 25.7 kB / 1.033 GB, free: 2.781 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.543e-05/0.3307, allocations: 84.27 kB / 1.033 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.3307, allocations: 7.938 kB / 1.033 GB, free: 2.688 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.3307, allocations: 9.719 kB / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3308, allocations: 314.8 kB / 1.033 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/0.3309, allocations: 3.984 kB / 1.033 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.827e-05/0.3309, allocations: 4 kB / 1.033 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.085e-05/0.331, allocations: 20.91 kB / 1.033 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.331, allocations: 0 / 1.033 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001346/0.3312, allocations: 41.69 kB / 1.033 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3312, allocations: 11.92 kB / 1.033 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.3312, allocations: 4 kB / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.3312, allocations: 3.938 kB / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.299e-05/0.3313, allocations: 0 / 1.033 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3313, allocations: 4 kB / 1.033 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.143e-05/0.3313, allocations: 0 / 1.033 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-06/0.3314, allocations: 4.031 kB / 1.033 GB, free: 2.25 MB / 0.7794 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.289e-05/0.3314, allocations: 115.6 kB / 1.033 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.3314, allocations: 4 kB / 1.033 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.3315, allocations: 7.062 kB / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.3315, allocations: 0 / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3315, allocations: 0 / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.3315, allocations: 0 / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.191e-05/0.3316, allocations: 145.7 kB / 1.033 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.3316, allocations: 4 kB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.3316, allocations: 11.94 kB / 1.033 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3317, allocations: 0 / 1.033 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-06/0.3317, allocations: 3.938 kB / 1.033 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3317, allocations: 0 / 1.033 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3317, allocations: 4 kB / 1.033 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.3318, allocations: 73.03 kB / 1.033 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.935e-05/0.3319, allocations: 85.08 kB / 1.033 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.3319, allocations: 3.938 kB / 1.033 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.141e-05/0.3319, allocations: 4 kB / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-06/0.3319, allocations: 0 / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.332, allocations: 0 / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.383e-05/0.332, allocations: 75.28 kB / 1.034 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.332, allocations: 0 / 1.034 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001768/0.3322, allocations: 4 kB / 1.034 GB, free: 1.621 MB / 0.7794 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.0001156/0.3323, allocations: 109.3 kB / 1.034 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001295/0.3324, allocations: 11.98 kB / 1.034 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3324, allocations: 0 / 1.034 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.371e-05/0.3325, allocations: 4 kB / 1.034 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.3326, allocations: 3.938 kB / 1.034 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002116/0.3328, allocations: 82.72 kB / 1.034 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.3331, allocations: 0.6809 MB / 1.034 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.545e-05/0.3331, allocations: 0 / 1.034 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.3331, allocations: 7.438 kB / 1.034 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.3331, allocations: 0 / 1.034 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of Templates: time 0.001912/0.3351, allocations: 224.8 kB / 1.035 GB, free: 460 kB / 0.7794 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=480 -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/jenkins/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