Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_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.005741/0.005741, allocations: 96.55 kB / 15.73 MB, free: 5.988 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.001111/0.001111, allocations: 187.8 kB / 16.67 MB, free: 5.918 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.767/2.767, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 63.91 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3088, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003531/0.3123, allocations: 1.785 MB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3136, allocations: 0.6545 MB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3137, allocations: 0 / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.562e-05/0.3138, allocations: 11.88 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.395e-05/0.3139, allocations: 19.78 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.3145, allocations: 170.6 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000193/0.3147, allocations: 119.7 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.3149, allocations: 49.09 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.3151, allocations: 63.77 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.55e-05/0.3152, allocations: 47.77 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.721e-05/0.3152, allocations: 12 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.3153, allocations: 47.95 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4e-05/0.3154, allocations: 31.91 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.874e-05/0.3154, allocations: 59.66 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.3157, allocations: 139.5 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3157, allocations: 0 / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3157, allocations: 0 / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.864e-06/0.3157, allocations: 0 / 1.223 GB, free: 11.45 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.0006146/0.3163, allocations: 454.6 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3164, allocations: 12.03 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.3164, allocations: 38.75 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008495/0.3173, allocations: 104.7 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.3174, allocations: 193.7 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-05/0.3175, allocations: 59.97 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.3176, allocations: 8.375 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.3181, allocations: 177.3 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3181, allocations: 0 / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.3182, allocations: 8 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3182, allocations: 0 / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006232/0.3188, allocations: 159.8 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.3199, allocations: 497.9 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.321, allocations: 214.3 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.3213, allocations: 88.91 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.3214, allocations: 0 / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3214, allocations: 34.56 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.3214, allocations: 3.938 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.001099/0.3225, allocations: 265.3 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.3226, allocations: 51.41 kB / 1.225 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.3227, allocations: 139.9 kB / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.3227, allocations: 29.7 kB / 1.225 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.3228, allocations: 112.2 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.3228, allocations: 23.78 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.3229, allocations: 25.7 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.323, allocations: 318.8 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.3233, allocations: 72.16 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.3236, allocations: 98.48 kB / 1.226 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006207/0.3243, allocations: 170.4 kB / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3243, allocations: 3.938 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006974/0.325, allocations: 201.5 kB / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.325, allocations: 5.875 kB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.325, allocations: 7.938 kB / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.325, allocations: 0 / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.3253, allocations: 43.88 kB / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3253, allocations: 4 kB / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.3255, allocations: 19.97 kB / 1.226 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.3256, allocations: 8 kB / 1.226 GB, free: 7.613 MB / 0.9825 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.000115/0.3257, allocations: 115.2 kB / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.3257, allocations: 15.89 kB / 1.226 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007558/0.3265, allocations: 206.2 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3265, allocations: 3.984 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3265, allocations: 3.938 kB / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3265, allocations: 4 kB / 1.227 GB, free: 7.254 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.3268, allocations: 238.1 kB / 1.227 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3268, allocations: 3.984 kB / 1.227 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.327, allocations: 31.95 kB / 1.227 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3271, allocations: 0 / 1.227 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.3271, allocations: 7.938 kB / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3271, allocations: 0 / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3271, allocations: 0 / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/0.3278, allocations: 291.5 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.3279, allocations: 85.06 kB / 1.227 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.3279, allocations: 3.938 kB / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.3282, allocations: 27.95 kB / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.3283, allocations: 11.92 kB / 1.227 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.3283, allocations: 15.92 kB / 1.227 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.959e-05/0.3284, allocations: 99.27 kB / 1.227 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3284, allocations: 4 kB / 1.227 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002708/0.3287, allocations: 23.95 kB / 1.227 GB, free: 6.344 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 (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.001035/0.3297, allocations: 0.8177 MB / 1.228 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007119/0.3304, allocations: 163.8 kB / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3304, allocations: 0 / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.3308, allocations: 91.97 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.3311, allocations: 4 kB / 1.229 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.3342, allocations: 1.828 MB / 1.23 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.3345, allocations: 0.702 MB / 1.231 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001072/0.3346, allocations: 19.98 kB / 1.231 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.088e-05/0.3347, allocations: 27.42 kB / 1.231 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3347, allocations: 0 / 1.231 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.3542, allocations: 2.764 MB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.857/8.211, allocations: 14.19 kB / 1.234 GB, free: 15.87 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches