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 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.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.001043/0.001043, 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.001027/0.001027, allocations: 195.5 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.253/1.253, 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.66/2.66, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 64.16 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3245, allocations: 157.4 MB / 1.053 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001997/0.3265, allocations: 0.5894 MB / 1.053 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3279, allocations: 1.119 MB / 1.055 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.84e-05/0.328, allocations: 4 kB / 1.055 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.328, allocations: 0 / 1.055 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.3283, allocations: 15.94 kB / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.368e-06/0.3284, allocations: 3.938 kB / 1.055 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.095e-05/0.3284, allocations: 3.938 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.405e-05/0.3285, allocations: 7.984 kB / 1.055 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.475e-05/0.3285, allocations: 0 / 1.055 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.393e-05/0.3285, allocations: 3.984 kB / 1.055 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.3285, allocations: 0 / 1.055 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.3286, allocations: 27.86 kB / 1.055 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.352e-06/0.3287, allocations: 0 / 1.055 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.652e-05/0.3287, allocations: 8 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.391e-05/0.3288, allocations: 11.97 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3288, allocations: 0 / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3288, allocations: 0 / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3288, allocations: 0 / 1.055 GB, free: 6.492 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00027/0.3291, allocations: 323.6 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3291, allocations: 12.62 kB / 1.055 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.359e-05/0.3292, allocations: 30.75 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.622e-05/0.3292, allocations: 4.875 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.517e-05/0.3293, allocations: 160.4 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3293, allocations: 4.375 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.3294, allocations: 12.36 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3295, allocations: 41.75 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3295, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.3295, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3295, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.336e-05/0.3295, allocations: 7.984 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.3297, allocations: 153.7 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.3299, allocations: 38.61 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.695e-05/0.3299, allocations: 12.8 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001627/0.3301, allocations: 81.19 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.3301, allocations: 42.5 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3302, allocations: 0 / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004448/0.3346, allocations: 0.5717 MB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.3347, allocations: 51.41 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.396e-05/0.3347, allocations: 93.86 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.3347, allocations: 25.7 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.613e-05/0.3347, allocations: 80.14 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.3348, allocations: 11.81 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.482e-05/0.3349, allocations: 21.7 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.335, allocations: 314.8 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006195/0.3356, allocations: 83.95 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006177/0.3362, allocations: 102.5 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.3374, allocations: 186.4 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3374, allocations: 3.938 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001282/0.3387, allocations: 221.5 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3388, allocations: 8 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3388, allocations: 0 / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.3388, allocations: 0 / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.3392, allocations: 52 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.3392, allocations: 0 / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.3396, allocations: 43.97 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.3396, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 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.023e-05/0.3397, allocations: 119.3 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.155e-05/0.3397, allocations: 7.875 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/0.3411, allocations: 237.1 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3411, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.3411, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3412, allocations: 3.984 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.3427, allocations: 458.3 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3427, allocations: 0 / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.3431, allocations: 48.28 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3431, allocations: 4.422 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.3432, allocations: 4 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3432, allocations: 4 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3432, allocations: 0 / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3445, allocations: 311.3 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.3445, allocations: 77.11 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.3446, allocations: 3.984 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.345, allocations: 39.98 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.528e-05/0.345, allocations: 3.984 kB / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.345, allocations: 4 kB / 1.059 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.793e-05/0.345, allocations: 79.28 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.345, allocations: 0 / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002533/0.3453, allocations: 12 kB / 1.059 GB, free: 1.988 MB / 0.8106 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.001615/0.3469, allocations: 0.8412 MB / 1.06 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001284/0.3482, allocations: 191.9 kB / 1.06 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3482, allocations: 0 / 1.06 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.3489, allocations: 92.02 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002246/0.3491, allocations: 0 / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.3504, allocations: 250.4 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.3507, allocations: 0.6729 MB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002279/0.3509, allocations: 28 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.638e-05/0.351, allocations: 23.36 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.351, allocations: 0 / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.3704, allocations: 1.612 MB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/7.89, allocations: 9.688 kB / 1.062 GB, free: 14.3 MB / 0.8262 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=50 --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) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:der(der_y),der(y),der2_y,der_y,time,y