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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001407/0.001407, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 197 kB / 16.53 MB, free: 6.664 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.37/1.37, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.789/2.789, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 63.34 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3042, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003447/0.3077, allocations: 1.768 MB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.309, allocations: 0.6661 MB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.555e-05/0.3091, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.736e-05/0.3091, allocations: 11.86 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.069e-05/0.3093, allocations: 19.81 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.3099, allocations: 173.2 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.31, allocations: 123.7 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.3102, allocations: 49.09 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.3103, allocations: 59.77 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.3105, allocations: 51.77 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.3105, allocations: 12 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.3106, allocations: 47.95 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.425e-05/0.3107, allocations: 23.92 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.748e-05/0.3108, allocations: 63.64 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.311, allocations: 143.8 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.311, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.311, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.311, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8262 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.0006572/0.3117, allocations: 443 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3117, allocations: 8.031 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.3118, allocations: 38.75 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009059/0.3127, allocations: 108.7 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3129, allocations: 193.2 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.313, allocations: 63.97 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.313, allocations: 12.38 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.3136, allocations: 165.5 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3136, allocations: 0 / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.3136, allocations: 4 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3136, allocations: 4 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006573/0.3143, allocations: 161.2 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.3155, allocations: 481.9 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.3166, allocations: 218.3 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.317, allocations: 88.89 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.317, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.317, allocations: 38.56 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.317, allocations: 0 / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.00111/0.3182, allocations: 261.5 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.3182, allocations: 51.41 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.3183, allocations: 135.7 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.3184, allocations: 33.64 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/0.3185, allocations: 120 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.3185, allocations: 23.73 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.576e-05/0.3186, allocations: 21.72 kB / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3187, allocations: 322.8 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.319, allocations: 67.92 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.3194, allocations: 102.5 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.32, allocations: 162.4 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.32, allocations: 4 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007224/0.3207, allocations: 197.4 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3208, allocations: 4 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3208, allocations: 3.938 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3208, allocations: 8.062 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.3211, allocations: 35.95 kB / 1.07 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.3211, allocations: 7.984 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.3213, allocations: 23.88 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.3214, allocations: 0 / 1.07 GB, free: 7.465 MB / 0.8262 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.0001104/0.3215, allocations: 121.8 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.3215, allocations: 7.906 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007621/0.3223, allocations: 210.5 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3223, allocations: 3.984 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3223, allocations: 7.938 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3223, allocations: 0 / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.3226, allocations: 238.1 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3226, allocations: 0 / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.3229, allocations: 31.95 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3229, allocations: 4 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3229, allocations: 7.922 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3229, allocations: 0 / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3229, allocations: 0 / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.3236, allocations: 295.2 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.3237, allocations: 85.02 kB / 1.071 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.3237, allocations: 3.938 kB / 1.071 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.3241, allocations: 31.95 kB / 1.071 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.3241, allocations: 11.98 kB / 1.071 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3241, allocations: 3.984 kB / 1.071 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.697e-05/0.3242, allocations: 109.1 kB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3242, allocations: 0 / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002659/0.3245, allocations: 23.91 kB / 1.071 GB, free: 6.195 MB / 0.8262 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.001013/0.3255, allocations: 0.8221 MB / 1.072 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000693/0.3262, allocations: 163.8 kB / 1.072 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3262, allocations: 3.938 kB / 1.072 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.3265, allocations: 87.84 kB / 1.072 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.3269, allocations: 12.12 kB / 1.072 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003084/0.33, allocations: 1.827 MB / 1.074 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.3303, allocations: 0.7002 MB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.301e-05/0.3304, allocations: 11.98 kB / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.039e-05/0.3304, allocations: 31.42 kB / 1.075 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3305, allocations: 4 kB / 1.075 GB, free: 2.398 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.3489, allocations: 2.714 MB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.304/7.653, allocations: 14.03 kB / 1.078 GB, free: 15.75 MB / 0.8419 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