Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 111.3 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.2/3.2, allocations: 497.2 MB / 0.7811 GB, free: 33.69 MB / 0.6231 GB " [Timeout remaining time 176] 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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.67 kB / 1.134 GB, free: 33.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3924, allocations: 173.9 MB / 1.304 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002793/0.3952, allocations: 1.44 MB / 1.305 GB, free: 92 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000915/0.3962, allocations: 483.2 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.3962, allocations: 8 kB / 1.306 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.323e-05/0.3962, allocations: 7.922 kB / 1.306 GB, free: 15.6 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.33e-05/0.3963, allocations: 0 / 1.306 GB, free: 15.6 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.00021/0.3965, allocations: 19.92 kB / 1.306 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.347e-05/0.3966, allocations: 27.86 kB / 1.306 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3967, allocations: 8 kB / 1.306 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.065e-05/0.3967, allocations: 4 kB / 1.306 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.205e-05/0.3968, allocations: 15.91 kB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.3968, allocations: 4 kB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.182e-05/0.3969, allocations: 19.92 kB / 1.306 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.549e-05/0.3969, allocations: 15.98 kB / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.3969, allocations: 7.938 kB / 1.306 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.397, allocations: 36.11 kB / 1.306 GB, free: 15.44 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.397, allocations: 0 / 1.306 GB, free: 15.44 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.723e-06/0.397, allocations: 0 / 1.306 GB, free: 15.44 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.397, allocations: 0 / 1.306 GB, free: 15.44 MB / 1.014 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.0004843/0.3975, allocations: 339.4 kB / 1.306 GB, free: 15.06 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3975, allocations: 16.61 kB / 1.306 GB, free: 15.05 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.745e-05/0.3976, allocations: 34.75 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.3976, allocations: 4.938 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.3978, allocations: 168.3 kB / 1.307 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.3978, allocations: 384 / 1.307 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.3978, allocations: 384 / 1.307 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.398, allocations: 57.73 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.398, allocations: 0 / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.398, allocations: 0 / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.398, allocations: 4 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.3982, allocations: 35.95 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003439/0.3985, allocations: 248.9 kB / 1.307 GB, free: 14.4 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.3986, allocations: 38.48 kB / 1.307 GB, free: 14.36 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.784e-05/0.3987, allocations: 24.91 kB / 1.307 GB, free: 14.33 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/0.3989, allocations: 81.11 kB / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.3989, allocations: 34.56 kB / 1.307 GB, free: 14.19 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.3989, allocations: 3.938 kB / 1.307 GB, free: 14.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0003512/0.3992, allocations: 81.64 kB / 1.307 GB, free: 14.1 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.3993, allocations: 51.41 kB / 1.307 GB, free: 14.04 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.464e-05/0.3994, allocations: 109.8 kB / 1.307 GB, free: 13.92 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.3994, allocations: 29.83 kB / 1.307 GB, free: 13.88 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.3995, allocations: 88.08 kB / 1.307 GB, free: 13.79 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.3995, allocations: 11.83 kB / 1.307 GB, free: 13.78 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.3995, allocations: 17.7 kB / 1.307 GB, free: 13.76 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3997, allocations: 314.8 kB / 1.308 GB, free: 13.44 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.341e-05/0.3997, allocations: 15.98 kB / 1.308 GB, free: 13.43 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.288e-05/0.3998, allocations: 19.98 kB / 1.308 GB, free: 13.41 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.4, allocations: 44.88 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4, allocations: 0 / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000198/0.4002, allocations: 61.62 kB / 1.308 GB, free: 13.29 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.4002, allocations: 11.98 kB / 1.308 GB, free: 13.28 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4002, allocations: 7.969 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4002, allocations: 4.031 kB / 1.308 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.931e-05/0.4003, allocations: 11.94 kB / 1.308 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.4003, allocations: 0 / 1.308 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.755e-05/0.4003, allocations: 7.984 kB / 1.308 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.4004, allocations: 0 / 1.308 GB, free: 13.25 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 8.329e-05/0.4004, allocations: 117.8 kB / 1.308 GB, free: 13.12 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.4005, allocations: 4 kB / 1.308 GB, free: 13.12 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.4007, allocations: 72.77 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.4007, allocations: 0 / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.4007, allocations: 0 / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4007, allocations: 4 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.4009, allocations: 157.6 kB / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4009, allocations: 0 / 1.308 GB, free: 12.83 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.4009, allocations: 11.98 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.4009, allocations: 0 / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.401, allocations: 4 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.401, allocations: 3.969 kB / 1.308 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.401, allocations: 4 kB / 1.308 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.4012, allocations: 159.5 kB / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.4012, allocations: 85 kB / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.4013, allocations: 0 / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.766e-05/0.4013, allocations: 11.98 kB / 1.308 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.4014, allocations: 8.031 kB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.4014, allocations: 256 / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.11e-05/0.4014, allocations: 87.27 kB / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.4014, allocations: 0 / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002296/0.4017, allocations: 4 kB / 1.309 GB, free: 12.43 MB / 1.014 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 (2): * Single equations (assignments): 2 * 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.0006251/0.4023, allocations: 0.7084 MB / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.4025, allocations: 35.95 kB / 1.309 GB, free: 11.65 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4025, allocations: 4 kB / 1.309 GB, free: 11.65 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 8.517e-05/0.4026, allocations: 15.92 kB / 1.309 GB, free: 11.63 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.4029, allocations: 13.7 kB / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005286/0.4035, allocations: 142.9 kB / 1.309 GB, free: 11.44 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.4038, allocations: 0.6807 MB / 1.31 GB, free: 10.73 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.403e-05/0.4039, allocations: 0 / 1.31 GB, free: 10.73 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.4039, allocations: 15.42 kB / 1.31 GB, free: 10.72 MB / 1.014 GB Notification: Performance of SimCode: time 3.21e-07/0.4039, allocations: 0 / 1.31 GB, free: 10.72 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.4288, allocations: 1.433 MB / 1.312 GB, free: 9.379 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.512, allocations: 8.188 kB / 1.312 GB, free: 9.375 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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: 15.336056096013635]