Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002354/0.002354, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.861/2.861, allocations: 476 MB / 0.7699 GB, free: 4.738 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 69.75 kB / 1.117 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3624, allocations: 169.9 MB / 1.283 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003207/0.3656, allocations: 1.757 MB / 1.284 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.367, allocations: 0.6987 MB / 1.285 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.015e-05/0.367, allocations: 0 / 1.285 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.062e-05/0.3671, allocations: 15.86 kB / 1.285 GB, free: 1.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.679e-05/0.3672, allocations: 15.8 kB / 1.285 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.3679, allocations: 183.4 kB / 1.285 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.3681, allocations: 127.6 kB / 1.285 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.3682, allocations: 33.89 kB / 1.285 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.3684, allocations: 71.81 kB / 1.285 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.396e-05/0.3685, allocations: 43.72 kB / 1.285 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.3686, allocations: 12 kB / 1.285 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.3687, allocations: 47.95 kB / 1.285 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.3687, allocations: 39.84 kB / 1.286 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.988e-05/0.3688, allocations: 47.77 kB / 1.286 GB, free: 1.273 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.3691, allocations: 151.4 kB / 1.286 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3691, allocations: 4 kB / 1.286 GB, free: 1.121 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3691, allocations: 0 / 1.286 GB, free: 1.121 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.3691, allocations: 0 / 1.286 GB, free: 1.121 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006547/0.3697, allocations: 365.6 kB / 1.286 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3698, allocations: 12.03 kB / 1.286 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.053e-05/0.3698, allocations: 42.73 kB / 1.286 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.3709, allocations: 128.7 kB / 1.286 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.3712, allocations: 162.8 kB / 1.286 GB, free: 372 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.3713, allocations: 119.1 kB / 1.287 GB, free: 228 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.329e-05/0.3714, allocations: 20 kB / 1.287 GB, free: 208 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/0.372, allocations: 219 kB / 1.287 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.372, allocations: 0 / 1.287 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.372, allocations: 8 kB / 1.287 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.372, allocations: 3.984 kB / 1.287 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006459/0.3727, allocations: 159.8 kB / 1.287 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.3738, allocations: 424.9 kB / 1.287 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3749, allocations: 214.3 kB / 1.288 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.3752, allocations: 80.91 kB / 1.288 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.3752, allocations: 7.984 kB / 1.288 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.3753, allocations: 34.5 kB / 1.288 GB, free: 15 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3753, allocations: 0 / 1.288 GB, free: 15 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.00106/0.3763, allocations: 261.4 kB / 1.288 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/0.3764, allocations: 55.34 kB / 1.288 GB, free: 14.67 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.3765, allocations: 149.8 kB / 1.288 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.3765, allocations: 25.7 kB / 1.288 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.3766, allocations: 112.3 kB / 1.288 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.3766, allocations: 23.77 kB / 1.288 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.3767, allocations: 25.72 kB / 1.288 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3769, allocations: 322.8 kB / 1.289 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.3772, allocations: 71.92 kB / 1.289 GB, free: 13.92 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.3775, allocations: 94.48 kB / 1.289 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006122/0.3781, allocations: 166.4 kB / 1.289 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3781, allocations: 0 / 1.289 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007044/0.3788, allocations: 209.4 kB / 1.289 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.3788, allocations: 4 kB / 1.289 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3788, allocations: 4 kB / 1.289 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3789, allocations: 0 / 1.289 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.3791, allocations: 35.95 kB / 1.289 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3791, allocations: 7.984 kB / 1.289 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.3793, allocations: 19.97 kB / 1.289 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.3794, allocations: 8 kB / 1.289 GB, free: 13.36 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 0.0001263/0.3795, allocations: 129.7 kB / 1.289 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.3795, allocations: 11.91 kB / 1.289 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007603/0.3803, allocations: 210.5 kB / 1.289 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3803, allocations: 4 kB / 1.289 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3803, allocations: 0 / 1.289 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3803, allocations: 0 / 1.289 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.3806, allocations: 181.4 kB / 1.29 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3806, allocations: 0 / 1.29 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.3808, allocations: 31.95 kB / 1.29 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3808, allocations: 0 / 1.29 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3808, allocations: 7.984 kB / 1.29 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3808, allocations: 0 / 1.29 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3808, allocations: 4 kB / 1.29 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007348/0.3815, allocations: 291.2 kB / 1.29 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.3816, allocations: 11.91 kB / 1.29 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.3816, allocations: 0 / 1.29 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3819, allocations: 31.95 kB / 1.29 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.986e-05/0.3819, allocations: 11.98 kB / 1.29 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.382, allocations: 7.984 kB / 1.29 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.085e-05/0.382, allocations: 103.3 kB / 1.29 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.382, allocations: 0 / 1.29 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002669/0.3823, allocations: 20 kB / 1.29 GB, free: 12.25 MB / 0.9981 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 (6): * Single equations (assignments): 6 * 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.001143/0.3835, allocations: 0.8293 MB / 1.291 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000693/0.3841, allocations: 159.8 kB / 1.291 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3842, allocations: 4.125 kB / 1.291 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003199/0.3845, allocations: 75.91 kB / 1.291 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3848, allocations: 12.38 kB / 1.291 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.3881, allocations: 1.852 MB / 1.293 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.272e-05/0.3882, allocations: 89.19 kB / 1.293 GB, free: 9.09 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001076/0.3883, allocations: 15.98 kB / 1.293 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.545e-05/0.3884, allocations: 35.41 kB / 1.293 GB, free: 9.039 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/0.3884, allocations: 4 kB / 1.293 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.4224, allocations: 3.448 MB / 1.297 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.66, allocations: 2.438 kB / 1.297 GB, free: 5.734 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.555688315071166]