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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007977/0.0007977, allocations: 91.53 kB / 16.02 MB, free: 80 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.0009028/0.0009027, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.378/1.378, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.795/2.795, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 8.75 kB / 0.9034 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3196, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002097/0.3218, allocations: 1.488 MB / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.3231, allocations: 0.6584 MB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.073e-05/0.3232, allocations: 0 / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.3232, allocations: 7.922 kB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.248e-05/0.3233, allocations: 11.88 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.3239, allocations: 162.8 kB / 1.062 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.3241, allocations: 111.7 kB / 1.062 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.3242, allocations: 41.11 kB / 1.062 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.3244, allocations: 47.83 kB / 1.062 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.3245, allocations: 43.77 kB / 1.062 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.3245, allocations: 4 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.3246, allocations: 39.97 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.864e-05/0.3247, allocations: 15.92 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.141e-05/0.3247, allocations: 81.28 kB / 1.062 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.3249, allocations: 104 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.361e-06/0.3249, allocations: 0 / 1.062 GB, free: 2.16 MB / 0.8106 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.0005885/0.3255, allocations: 415.2 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3256, allocations: 8.031 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.3265, allocations: 140.7 kB / 1.063 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.3267, allocations: 188.1 kB / 1.063 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.3268, allocations: 63.97 kB / 1.063 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.3268, allocations: 8.375 kB / 1.063 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005688/0.3274, allocations: 194.5 kB / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.3274, allocations: 0 / 1.063 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.3274, allocations: 8 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3274, allocations: 0 / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006797/0.3281, allocations: 199.8 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.3293, allocations: 0.4901 MB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.3305, allocations: 270.3 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.3309, allocations: 100.9 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3309, allocations: 0 / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.331, allocations: 46.44 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.331, allocations: 0 / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.001158/0.3321, allocations: 317.5 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.3322, allocations: 55.41 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.3323, allocations: 135.2 kB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.3324, allocations: 25.7 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.034e-05/0.3324, allocations: 116.1 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.3325, allocations: 19.73 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.3325, allocations: 13.72 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3326, allocations: 318.8 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.333, allocations: 95.92 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003514/0.3333, allocations: 114.5 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/0.334, allocations: 198.4 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.334, allocations: 0 / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007763/0.3348, allocations: 241.3 kB / 1.066 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3349, allocations: 5.25 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3349, allocations: 4 kB / 1.066 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3349, allocations: 3.938 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.3352, allocations: 51.89 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3352, allocations: 0 / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.3354, allocations: 31.97 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3354, allocations: 7.984 kB / 1.066 GB, free: 14.09 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.000105/0.3356, allocations: 113.8 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.3356, allocations: 15.89 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007952/0.3364, allocations: 238.2 kB / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3364, allocations: 7.938 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.3364, allocations: 0 / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3364, allocations: 0 / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.3367, allocations: 238.1 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3367, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.337, allocations: 39.95 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.337, allocations: 4 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.337, allocations: 8.312 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.3371, allocations: 0 / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3371, allocations: 7.938 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008432/0.3379, allocations: 319.3 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.338, allocations: 85 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.338, allocations: 11.88 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.3384, allocations: 43.95 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.3384, allocations: 7.938 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.3384, allocations: 7.984 kB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.02e-05/0.3385, allocations: 114.1 kB / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3385, allocations: 0 / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002702/0.3388, allocations: 27.91 kB / 1.067 GB, free: 12.73 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.0001423/0.3389, allocations: 95.25 kB / 1.067 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007418/0.3397, allocations: 203.8 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.3397, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.3401, allocations: 96.05 kB / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.3404, allocations: 8 kB / 1.067 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007236/0.3411, allocations: 339.1 kB / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.3414, allocations: 0.7043 MB / 1.068 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.797e-05/0.3415, allocations: 15.42 kB / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3415, allocations: 0 / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of Templates: time 0.003196/0.3447, allocations: 1.579 MB / 1.07 GB, free: 9.637 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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