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.007362/0.007362, allocations: 99.64 kB / 15.73 MB, free: 5.551 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.001392/0.001392, allocations: 193.7 kB / 16.67 MB, free: 5.492 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 71.89 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3174, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003708/0.3211, allocations: 1.772 MB / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3224, allocations: 0.651 MB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.3225, allocations: 0 / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.031e-05/0.3226, allocations: 15.81 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.225e-05/0.3227, allocations: 19.8 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006772/0.3234, allocations: 165.6 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.3236, allocations: 123.7 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.3238, allocations: 49.09 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.3239, allocations: 55.83 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.324, allocations: 55.75 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.3241, allocations: 15.94 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.3242, allocations: 47.97 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.655e-05/0.3243, allocations: 19.92 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.41e-05/0.3243, allocations: 67.64 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.3246, allocations: 151.8 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3246, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3246, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.3246, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 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.0006126/0.3252, allocations: 446.9 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3253, allocations: 12.62 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.3253, allocations: 34.75 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008608/0.3262, allocations: 108.7 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.3263, allocations: 201 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.3265, allocations: 63.97 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/0.3265, allocations: 4.375 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.327, allocations: 169.5 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.327, allocations: 0 / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.3271, allocations: 11.98 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3271, allocations: 4 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005966/0.3277, allocations: 151.8 kB / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.3289, allocations: 481.8 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009875/0.3299, allocations: 226.2 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.3302, allocations: 84.91 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.3302, allocations: 3.984 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3303, allocations: 38.56 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.3303, allocations: 0 / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.001088/0.3314, allocations: 257.5 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.3314, allocations: 55.41 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.3316, allocations: 142.8 kB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.3316, allocations: 29.7 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.3317, allocations: 104.2 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3317, allocations: 27.64 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.3318, allocations: 21.7 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3319, allocations: 318.8 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.3322, allocations: 79.91 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.3324, allocations: 90.5 kB / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/0.333, allocations: 166.4 kB / 1.214 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.333, allocations: 0 / 1.214 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006377/0.3336, allocations: 205.3 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3337, allocations: 4 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.3337, allocations: 7.938 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3337, allocations: 0 / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.334, allocations: 40.19 kB / 1.214 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.334, allocations: 4.062 kB / 1.214 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.3342, allocations: 31.97 kB / 1.214 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.3342, allocations: 4 kB / 1.214 GB, free: 3.098 MB / 0.9669 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.0001161/0.3344, allocations: 113.8 kB / 1.214 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.3344, allocations: 7.906 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007065/0.3351, allocations: 214.1 kB / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3351, allocations: 0 / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.3352, allocations: 0 / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3352, allocations: 4 kB / 1.214 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.3354, allocations: 242 kB / 1.214 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3354, allocations: 0 / 1.214 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.3357, allocations: 39.94 kB / 1.214 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.3357, allocations: 0 / 1.214 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3357, allocations: 3.938 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3357, allocations: 0 / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3357, allocations: 0 / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00066/0.3364, allocations: 287.2 kB / 1.215 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.3364, allocations: 85.02 kB / 1.215 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.3365, allocations: 7.938 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.3368, allocations: 27.95 kB / 1.215 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/0.3368, allocations: 7.984 kB / 1.215 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3368, allocations: 11.98 kB / 1.215 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.053e-05/0.3369, allocations: 100.8 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3369, allocations: 4 kB / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000264/0.3372, allocations: 20 kB / 1.215 GB, free: 1.84 MB / 0.9669 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.0009415/0.3381, allocations: 0.822 MB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000614/0.3388, allocations: 164 kB / 1.216 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3388, allocations: 0 / 1.216 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.3391, allocations: 87.84 kB / 1.216 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.3394, allocations: 13.5 kB / 1.216 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.3425, allocations: 1.825 MB / 1.218 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.3428, allocations: 0.7066 MB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.863e-05/0.3429, allocations: 15.97 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.343, allocations: 39.36 kB / 1.219 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.343, allocations: 0 / 1.219 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.3629, allocations: 2.791 MB / 1.221 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/8.045, allocations: 4.531 kB / 1.221 GB, free: 11.33 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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