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.007262/0.007262, allocations: 101.3 kB / 15.73 MB, free: 5.984 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.001453/0.001453, allocations: 196.7 kB / 16.68 MB, free: 5.906 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.199 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.452/2.452, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 67.8 kB / 0.9504 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3212, allocations: 140.4 MB / 1.087 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003162/0.3244, allocations: 1.758 MB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.3256, allocations: 0.667 MB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.077e-05/0.3257, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.165e-05/0.3258, allocations: 15.81 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.843e-05/0.3259, allocations: 15.8 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.3266, allocations: 171.6 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.3268, allocations: 123.6 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3269, allocations: 52.83 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.3271, allocations: 59.83 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.3272, allocations: 55.75 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.3272, allocations: 12 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3273, allocations: 43.97 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.329e-05/0.3274, allocations: 27.91 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.715e-05/0.3274, allocations: 59.66 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.3277, allocations: 142.4 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3277, allocations: 3.938 kB / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.567e-06/0.3277, allocations: 0 / 1.091 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3277, allocations: 3.938 kB / 1.091 GB, free: 14.87 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.0006021/0.3283, allocations: 435.8 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3284, allocations: 12.03 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.68e-05/0.3284, allocations: 38.75 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008224/0.3292, allocations: 108.7 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.3294, allocations: 198.1 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.3295, allocations: 63.97 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.3296, allocations: 8.375 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.3301, allocations: 169.4 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.3301, allocations: 0 / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.3301, allocations: 12 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3302, allocations: 0 / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006888/0.3308, allocations: 155.8 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.332, allocations: 485.9 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.333, allocations: 214.3 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.3333, allocations: 80.91 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.3334, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.3334, allocations: 42.5 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.3334, allocations: 0 / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001055/0.3345, allocations: 261.5 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3345, allocations: 59.41 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.3346, allocations: 133.8 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.3346, allocations: 25.7 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.3347, allocations: 108.2 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.3348, allocations: 23.72 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.429e-05/0.3348, allocations: 21.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3349, allocations: 318.8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.3352, allocations: 83.84 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003117/0.3356, allocations: 98.38 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.3362, allocations: 162.4 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3362, allocations: 0 / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000742/0.3369, allocations: 201.4 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.337, allocations: 6.031 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.337, allocations: 7.938 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.337, allocations: 7.969 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.3373, allocations: 39.95 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.3373, allocations: 4 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.3375, allocations: 27.88 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.3375, allocations: 4.312 kB / 1.094 GB, free: 11.07 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.0001005/0.3376, allocations: 121.8 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.3376, allocations: 7.906 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007657/0.3384, allocations: 214.1 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3384, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.3384, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3385, allocations: 4 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.3387, allocations: 234.4 kB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3387, allocations: 4 kB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.339, allocations: 31.95 kB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.339, allocations: 0 / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.339, allocations: 3.938 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.339, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.339, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007253/0.3397, allocations: 287.3 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.3398, allocations: 85.02 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3398, allocations: 3.938 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.3401, allocations: 27.95 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.3402, allocations: 15.92 kB / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.3402, allocations: 11.98 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.473e-05/0.3403, allocations: 96.81 kB / 1.095 GB, free: 9.844 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3403, allocations: 4 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002652/0.3406, allocations: 23.91 kB / 1.095 GB, free: 9.816 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.001084/0.3417, allocations: 0.8293 MB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007068/0.3424, allocations: 163.8 kB / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3424, allocations: 0 / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.3427, allocations: 80.22 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.3431, allocations: 16.03 kB / 1.096 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.3462, allocations: 1.829 MB / 1.098 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.3466, allocations: 0.7061 MB / 1.099 GB, free: 6.047 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.864e-05/0.3467, allocations: 15.98 kB / 1.099 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.914e-05/0.3468, allocations: 31.42 kB / 1.099 GB, free: 6.004 MB / 0.8575 GB Notification: Performance of SimCode: time 4.11e-07/0.3468, allocations: 0 / 1.099 GB, free: 6.004 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.3669, allocations: 2.794 MB / 1.101 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/7.802, allocations: 0 / 1.101 GB, free: 3.293 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