Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007805/0.007805, allocations: 108.9 kB / 15.74 MB, free: 6.441 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.001844/0.001845, allocations: 194.8 kB / 16.67 MB, free: 6.355 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.352/2.352, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 66.75 kB / 0.9504 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2808, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003012/0.2838, allocations: 1.769 MB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.285, allocations: 0.667 MB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.758e-05/0.2851, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.345e-05/0.2852, allocations: 11.86 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.416e-05/0.2853, allocations: 23.75 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.2859, allocations: 172.3 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.2861, allocations: 119.7 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2862, allocations: 56.83 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.2864, allocations: 59.77 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.813e-05/0.2865, allocations: 55.75 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.2865, allocations: 16 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.2866, allocations: 43.97 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.593e-05/0.2867, allocations: 27.91 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.2868, allocations: 63.64 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.287, allocations: 138.4 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.287, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.805e-06/0.287, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.249e-06/0.287, allocations: 3.938 kB / 1.091 GB, free: 14.75 MB / 0.8575 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.000589/0.2876, allocations: 439.8 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.2877, allocations: 12.03 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.223e-05/0.2877, allocations: 42.73 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000832/0.2885, allocations: 104.7 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2887, allocations: 192 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/0.2888, allocations: 67.95 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.2888, allocations: 12.38 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005017/0.2893, allocations: 167.5 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.2893, allocations: 0 / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.2894, allocations: 4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2894, allocations: 4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006196/0.29, allocations: 163.8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.291, allocations: 478 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.2921, allocations: 214.3 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.2924, allocations: 80.91 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.2924, allocations: 3.984 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.2925, allocations: 34.56 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.2925, allocations: 4 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001011/0.2935, allocations: 257.4 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.2936, allocations: 59.41 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2937, allocations: 139.7 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.2937, allocations: 29.7 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.2938, allocations: 108.2 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.2938, allocations: 19.73 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.428e-05/0.2939, allocations: 21.7 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.294, allocations: 322.8 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003134/0.2943, allocations: 79.86 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.2947, allocations: 94.48 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006017/0.2953, allocations: 174.6 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2953, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006919/0.296, allocations: 201.4 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.296, allocations: 4 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.296, allocations: 3.938 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.296, allocations: 4 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.2963, allocations: 31.95 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.2963, allocations: 4 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.2966, allocations: 35.92 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.2966, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 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.0001204/0.2967, allocations: 125.7 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.2968, allocations: 7.906 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007678/0.2975, allocations: 206.2 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2976, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2976, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2976, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.2979, allocations: 234.4 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2979, allocations: 4 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.2982, allocations: 35.89 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.2982, allocations: 4 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.2982, allocations: 7.922 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2982, allocations: 0 / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2982, allocations: 0 / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007128/0.2989, allocations: 287.5 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/0.299, allocations: 89 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.299, allocations: 7.938 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2993, allocations: 27.95 kB / 1.095 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.2994, allocations: 4 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.2994, allocations: 11.98 kB / 1.095 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.185e-05/0.2995, allocations: 104.6 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2995, allocations: 0 / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002693/0.2998, allocations: 27.91 kB / 1.095 GB, free: 9.699 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 (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.001017/0.3008, allocations: 0.8292 MB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009011/0.3017, allocations: 167.8 kB / 1.096 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3017, allocations: 0 / 1.096 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.3021, allocations: 75.92 kB / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.3024, allocations: 11.98 kB / 1.096 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.3055, allocations: 1.833 MB / 1.098 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.3058, allocations: 0.7041 MB / 1.099 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.827e-05/0.3059, allocations: 12 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.489e-05/0.306, allocations: 27.42 kB / 1.099 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of SimCode: time 3.5e-07/0.306, allocations: 4 kB / 1.099 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.3237, allocations: 2.75 MB / 1.101 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/8.494, allocations: 7.328 kB / 1.101 GB, free: 3.219 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches