Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.005398/0.005398, allocations: 99.92 kB / 15.73 MB, free: 6.016 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.001472/0.001472, allocations: 188 kB / 16.67 MB, free: 5.93 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.568/2.568, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 62.44 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2791, allocations: 162.3 MB / 1.242 GB, free: 8.891 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001523/0.2806, allocations: 0.6011 MB / 1.242 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2819, allocations: 1.104 MB / 1.244 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.338e-05/0.2819, allocations: 0 / 1.244 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.177e-05/0.2819, allocations: 0 / 1.244 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.2821, allocations: 15.92 kB / 1.244 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 2.806e-06/0.2822, allocations: 0 / 1.244 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 3.559e-05/0.2822, allocations: 3.938 kB / 1.244 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.724e-05/0.2822, allocations: 7.938 kB / 1.244 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.234e-05/0.2823, allocations: 0 / 1.244 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.517e-05/0.2823, allocations: 15.97 kB / 1.244 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.512e-06/0.2823, allocations: 0 / 1.244 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.726e-05/0.2824, allocations: 19.92 kB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.5e-06/0.2824, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.801e-05/0.2824, allocations: 7.938 kB / 1.244 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 6.897e-05/0.2825, allocations: 11.97 kB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2825, allocations: 4 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2825, allocations: 0 / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.2825, allocations: 0 / 1.244 GB, free: 7.086 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002787/0.2828, allocations: 317.5 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2829, allocations: 16.03 kB / 1.244 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.058e-05/0.2829, allocations: 30.75 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.835e-05/0.2829, allocations: 0.9375 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.283, allocations: 160.4 kB / 1.244 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.283, allocations: 4.375 kB / 1.244 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.2831, allocations: 12.31 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.035e-05/0.2832, allocations: 41.75 kB / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.2832, allocations: 0 / 1.244 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.334e-05/0.2832, allocations: 12 kB / 1.244 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.2834, allocations: 153.6 kB / 1.244 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.2835, allocations: 34.61 kB / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.055e-05/0.2836, allocations: 10.34 kB / 1.244 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.2837, allocations: 85.05 kB / 1.244 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2837, allocations: 46.52 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2837, allocations: 7.938 kB / 1.245 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.004055/0.2878, allocations: 0.5638 MB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.2879, allocations: 51.41 kB / 1.245 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.288e-05/0.2879, allocations: 89.86 kB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.2879, allocations: 25.7 kB / 1.245 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.079e-05/0.288, allocations: 80.14 kB / 1.245 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.664e-05/0.288, allocations: 19.86 kB / 1.245 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.2881, allocations: 21.7 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2882, allocations: 314.8 kB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005846/0.2888, allocations: 79.95 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.2894, allocations: 106.5 kB / 1.246 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.2906, allocations: 194.4 kB / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.2906, allocations: 0 / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001225/0.2918, allocations: 217.5 kB / 1.246 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2918, allocations: 8.062 kB / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.2918, allocations: 0 / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2919, allocations: 4 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.2923, allocations: 47.97 kB / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2923, allocations: 4 kB / 1.246 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.2926, allocations: 39.97 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.2926, allocations: 4.188 kB / 1.246 GB, free: 4.066 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 (5): * Single equations (assignments): 5 * 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 9.063e-05/0.2927, allocations: 118.2 kB / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.2927, allocations: 7.938 kB / 1.246 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.2941, allocations: 237.1 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2941, allocations: 0 / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2941, allocations: 0 / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2941, allocations: 0 / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.2955, allocations: 462.3 kB / 1.247 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2956, allocations: 0 / 1.247 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.2959, allocations: 47.97 kB / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2959, allocations: 432 / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.296, allocations: 3.984 kB / 1.247 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.296, allocations: 0 / 1.247 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.296, allocations: 8 kB / 1.247 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.2972, allocations: 303.3 kB / 1.247 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.2973, allocations: 85.08 kB / 1.248 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.2973, allocations: 7.938 kB / 1.248 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.2977, allocations: 35.98 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.778e-05/0.2977, allocations: 7.984 kB / 1.248 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.2977, allocations: 0 / 1.248 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.983e-05/0.2978, allocations: 75.28 kB / 1.248 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2978, allocations: 7.938 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002325/0.298, allocations: 16 kB / 1.248 GB, free: 2.566 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 (5): * Single equations (assignments): 5 * 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.001557/0.2996, allocations: 0.8335 MB / 1.249 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001221/0.3008, allocations: 188.1 kB / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3008, allocations: 0 / 1.249 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.3014, allocations: 96.02 kB / 1.249 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001945/0.3016, allocations: 5.875 kB / 1.249 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.3028, allocations: 242.4 kB / 1.249 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.3031, allocations: 0.6768 MB / 1.25 GB, free: 452 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001626/0.3033, allocations: 28.25 kB / 1.25 GB, free: 424 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.242e-05/0.3034, allocations: 19.42 kB / 1.25 GB, free: 408 kB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3034, allocations: 0 / 1.25 GB, free: 408 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2661/0.5695, allocations: 1.63 MB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.898, allocations: 18.31 kB / 1.251 GB, free: 14.89 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches