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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008132/0.0008132, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 165.9 kB / 22.46 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9058/0.9058, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.777/1.777, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.9997 GB, free: 13.43 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.333e-05/1.477e-05, allocations: 5.094 kB / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001001/0.001016, allocations: 0.5915 MB / 1 GB, free: 12.83 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.002055, allocations: 1.128 MB / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.422e-05/0.002079, allocations: 0 / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.002094, allocations: 0 / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.002335, allocations: 23.86 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 4.017e-06/0.002339, allocations: 0 / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 3.861e-05/0.002377, allocations: 0 / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.00242, allocations: 8 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.002445, allocations: 3.938 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.365e-05/0.002469, allocations: 7.969 kB / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 9.078e-06/0.002478, allocations: 0 / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.444e-05/0.002572, allocations: 12 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 9.278e-06/0.002582, allocations: 0 / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.206e-05/0.002594, allocations: 7.938 kB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 7.692e-05/0.002671, allocations: 15.91 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.002674, allocations: 4 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.42e-07/0.002675, allocations: 0 / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.002679, allocations: 0 / 1.001 GB, free: 11.61 MB / 0.9636 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.0002074/0.002886, allocations: 246.4 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.002924, allocations: 8.75 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.525e-05/0.00295, allocations: 30.75 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.003117, allocations: 16.91 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.381e-05/0.00317, allocations: 113.7 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-06/0.00318, allocations: 384 / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.0032, allocations: 384 / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.748e-05/0.003287, allocations: 38.23 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.003297, allocations: 192 / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.003307, allocations: 12.12 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.003311, allocations: 4 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.505e-05/0.003346, allocations: 11.92 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.978e-05/0.003446, allocations: 116.8 kB / 1.002 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.003582, allocations: 34.61 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.647e-05/0.003598, allocations: 8.859 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.003616, allocations: 4 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.003631, allocations: 30.56 kB / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 7.52e-07/0.003632, allocations: 0 / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of matching and sorting (n=5): time 0.001733/0.005365, allocations: 0.5481 MB / 1.003 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.005394, allocations: 59.34 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.651e-05/0.005421, allocations: 89.86 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.005435, allocations: 25.7 kB / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 1.694e-05/0.005452, allocations: 80.14 kB / 1.003 GB, free: 9.977 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.005483, allocations: 23.83 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.005521, allocations: 17.72 kB / 1.003 GB, free: 9.93 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002166/0.005738, allocations: 322.8 kB / 1.003 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.005994, allocations: 79.95 kB / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.006253, allocations: 102.5 kB / 1.003 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.006756, allocations: 190.5 kB / 1.004 GB, free: 9.223 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.006757, allocations: 0 / 1.004 GB, free: 9.223 MB / 0.9636 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000548/0.007305, allocations: 217.5 kB / 1.004 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.007318, allocations: 8 kB / 1.004 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.007324, allocations: 7.875 kB / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.007335, allocations: 0 / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.007506, allocations: 52 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.007511, allocations: 0 / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.007657, allocations: 43.97 kB / 1.004 GB, free: 8.895 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.007667, allocations: 4 kB / 1.004 GB, free: 8.891 MB / 0.9636 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 6.217e-05/0.00773, allocations: 117.8 kB / 1.004 GB, free: 8.766 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.047e-06/0.007739, allocations: 0 / 1.004 GB, free: 8.766 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.491e-05/0.007784, allocations: 15.59 kB / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.007786, allocations: 0 / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.00779, allocations: 0 / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.007793, allocations: 0 / 1.004 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000758/0.008551, allocations: 425.5 kB / 1.004 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008552, allocations: 0 / 1.004 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.008713, allocations: 47.97 kB / 1.005 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.008715, allocations: 0 / 1.005 GB, free: 8.234 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.008728, allocations: 11.98 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.008729, allocations: 0 / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.00873, allocations: 4 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00057/0.0093, allocations: 311.6 kB / 1.005 GB, free: 7.898 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-06/0.009305, allocations: 4.375 kB / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.009319, allocations: 0 / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.009476, allocations: 39.98 kB / 1.005 GB, free: 7.855 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.00949, allocations: 7.984 kB / 1.005 GB, free: 7.848 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.009498, allocations: 0 / 1.005 GB, free: 7.848 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.053e-05/0.009518, allocations: 75.28 kB / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.009518, allocations: 0 / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001643/0.009682, allocations: 15.94 kB / 1.005 GB, free: 7.758 MB / 0.9636 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.000741/0.01042, allocations: 0.8373 MB / 1.006 GB, free: 6.895 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0005589/0.01098, allocations: 183.9 kB / 1.006 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01098, allocations: 0 / 1.006 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.01124, allocations: 96.02 kB / 1.006 GB, free: 6.621 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.01138, allocations: 0 / 1.006 GB, free: 6.621 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006604/0.01204, allocations: 254.6 kB / 1.006 GB, free: 6.332 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.658e-05/0.01208, allocations: 59.36 kB / 1.006 GB, free: 6.254 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.01219, allocations: 28 kB / 1.006 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.516e-05/0.01226, allocations: 16.48 kB / 1.006 GB, free: 6.211 MB / 0.9636 GB Notification: Performance of SimCode: time 4.51e-07/0.01226, allocations: 0 / 1.006 GB, free: 6.211 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.02822, allocations: 2.239 MB / 1.009 GB, free: 4.109 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.898/6.926, allocations: 18.16 kB / 1.009 GB, free: 4.094 MB / 0.9636 GB " [Timeout remaining time 293] (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 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.006035178899765]