Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008249/0.0008249, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008985/0.0008985, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8852/0.8852, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.753/1.753, allocations: 377.8 MB / 0.6221 GB, free: 8.68 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 0.981 GB, free: 2.543 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.119e-05/1.253e-05, allocations: 2.281 kB / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001002/0.001014, allocations: 0.602 MB / 0.9816 GB, free: 1.941 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009659/0.00198, allocations: 1.12 MB / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.002001, allocations: 4 kB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.002015, allocations: 0 / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0002038/0.002219, allocations: 19.86 kB / 0.9827 GB, free: 0.7812 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 3.266e-06/0.002222, allocations: 0 / 0.9827 GB, free: 0.7812 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 3.83e-05/0.00226, allocations: 11.92 kB / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.002302, allocations: 0 / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.303e-05/0.002325, allocations: 4 kB / 0.9827 GB, free: 0.7656 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.002344, allocations: 3.938 kB / 0.9827 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 7.224e-06/0.002351, allocations: 0 / 0.9827 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 8.501e-05/0.002436, allocations: 23.91 kB / 0.9828 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 8.286e-06/0.002444, allocations: 4 kB / 0.9828 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 9.377e-06/0.002454, allocations: 0 / 0.9828 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 6.744e-05/0.002521, allocations: 11.98 kB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.002523, allocations: 0 / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of FrontEnd: time 6.71e-07/0.002523, allocations: 0 / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.828e-06/0.002527, allocations: 0 / 0.9828 GB, free: 0.7227 MB / 0.9323 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.0001949/0.002722, allocations: 242.4 kB / 0.983 GB, free: 468 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.002759, allocations: 12.03 kB / 0.983 GB, free: 456 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.618e-05/0.002785, allocations: 34.73 kB / 0.9831 GB, free: 412 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.94e-05/0.002805, allocations: 0.9375 kB / 0.9831 GB, free: 412 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.094e-05/0.002856, allocations: 105.8 kB / 0.9832 GB, free: 280 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.002866, allocations: 8.375 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.002885, allocations: 384 / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.081e-05/0.002965, allocations: 42.17 kB / 0.9832 GB, free: 224 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.002975, allocations: 192 / 0.9832 GB, free: 224 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-06/0.002982, allocations: 4.125 kB / 0.9832 GB, free: 220 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.002987, allocations: 7.938 kB / 0.9832 GB, free: 212 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.469e-05/0.003022, allocations: 7.938 kB / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.003124, allocations: 120.8 kB / 0.9833 GB, free: 40 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.00328, allocations: 30.58 kB / 0.9834 GB, free: 0 / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.003312, allocations: 16.88 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 9.291e-05/0.003405, allocations: 8 kB / 0.9834 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.003421, allocations: 34.56 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 7.32e-07/0.003422, allocations: 0 / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of matching and sorting (n=5): time 0.00195/0.005372, allocations: 0.5831 MB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.005399, allocations: 51.41 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.209e-05/0.005421, allocations: 89.86 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.005435, allocations: 25.7 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 1.573e-05/0.005451, allocations: 80.14 kB / 0.9842 GB, free: 15.07 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.005481, allocations: 23.88 kB / 0.9843 GB, free: 15.04 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.005518, allocations: 17.72 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.536e-05/0.005584, allocations: 314.8 kB / 0.9846 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.005838, allocations: 83.94 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.006097, allocations: 102.5 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005081/0.006605, allocations: 194.4 kB / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.006606, allocations: 0 / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005401/0.007146, allocations: 209.6 kB / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.007158, allocations: 4 kB / 0.9851 GB, free: 14.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.007168, allocations: 11.92 kB / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.007178, allocations: 0 / 0.9851 GB, free: 14.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.007345, allocations: 48 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.00735, allocations: 4 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.00749, allocations: 35.98 kB / 0.9852 GB, free: 14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.007499, allocations: 4 kB / 0.9852 GB, free: 14 MB / 0.948 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 5.724e-05/0.007556, allocations: 117.8 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.007566, allocations: 7.984 kB / 0.9854 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000606/0.008172, allocations: 233.1 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.008175, allocations: 4 kB / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.008178, allocations: 0 / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.00818, allocations: 0 / 0.9856 GB, free: 13.63 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.008875, allocations: 429.4 kB / 0.986 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.008877, allocations: 0 / 0.986 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.009031, allocations: 51.91 kB / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.009033, allocations: 0 / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.009042, allocations: 4 kB / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.009044, allocations: 320 / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.009045, allocations: 0 / 0.986 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005545/0.009599, allocations: 307.4 kB / 0.9863 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-06/0.009603, allocations: 8.359 kB / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.009616, allocations: 3.938 kB / 0.9863 GB, free: 12.78 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.009769, allocations: 43.97 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.00978, allocations: 0 / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.009786, allocations: 4 kB / 0.9864 GB, free: 12.73 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.895e-05/0.009805, allocations: 79.28 kB / 0.9865 GB, free: 12.65 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009805, allocations: 0 / 0.9865 GB, free: 12.65 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000164/0.009969, allocations: 11.94 kB / 0.9865 GB, free: 12.64 MB / 0.948 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.0008719/0.01084, allocations: 0.8418 MB / 0.9873 GB, free: 11.77 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0005498/0.01139, allocations: 184 kB / 0.9875 GB, free: 11.59 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.01139, allocations: 0 / 0.9875 GB, free: 11.59 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.01164, allocations: 84.02 kB / 0.9876 GB, free: 11.51 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.01179, allocations: 7.984 kB / 0.9876 GB, free: 11.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006573/0.01245, allocations: 254.5 kB / 0.9878 GB, free: 11.21 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.572e-05/0.01248, allocations: 63.22 kB / 0.9879 GB, free: 11.13 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0001076/0.01259, allocations: 31.98 kB / 0.9879 GB, free: 11.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.35e-05/0.01264, allocations: 12.5 kB / 0.9879 GB, free: 11.09 MB / 0.948 GB Notification: Performance of SimCode: time 2.81e-07/0.01264, allocations: 0 / 0.9879 GB, free: 11.09 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01389/0.02654, allocations: 2.277 MB / 0.9901 GB, free: 8.941 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/6.916, allocations: 14.33 kB / 0.9902 GB, free: 8.934 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.884067052043974]