Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.001783/0.001783, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 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.002856/0.002856, allocations: 215.7 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.527/1.527, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.287/3.287, allocations: 0.49 GB / 0.7951 GB, free: 35.62 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003051/0.003051, allocations: 72.33 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.439, allocations: 176.1 MB / 1.326 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003182/0.4422, allocations: 1.463 MB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.4432, allocations: 475 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.314e-05/0.4432, allocations: 4 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.4432, allocations: 3.938 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.755e-05/0.4433, allocations: 7.922 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.4436, allocations: 15.98 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.343e-05/0.4437, allocations: 19.94 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.4438, allocations: 15.98 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.118e-05/0.4439, allocations: 19.86 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.786e-05/0.4439, allocations: 7.984 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.4439, allocations: 0 / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.024e-05/0.444, allocations: 23.92 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.151e-05/0.444, allocations: 8 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.444, allocations: 0 / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.4442, allocations: 40.11 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.4442, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4442, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4442, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 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.000547/0.4447, allocations: 266.3 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4448, allocations: 12.02 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.249e-05/0.4448, allocations: 30.75 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.4449, allocations: 12.88 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.4451, allocations: 114.4 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.4451, allocations: 4.375 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.4451, allocations: 4.375 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.4453, allocations: 53.8 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4453, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.4454, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.4454, allocations: 0 / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.4455, allocations: 35.95 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003882/0.4459, allocations: 220 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/0.4461, allocations: 42.48 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.992e-05/0.4462, allocations: 20.91 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.4463, allocations: 8 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.4463, allocations: 34.55 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.4463, allocations: 0 / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003727/0.4467, allocations: 85.59 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.4467, allocations: 51.41 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.4468, allocations: 105.8 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.4469, allocations: 25.7 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.017e-05/0.4469, allocations: 80.14 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.4469, allocations: 7.891 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.447, allocations: 21.7 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.4471, allocations: 314.8 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.659e-05/0.4472, allocations: 24.11 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-05/0.4473, allocations: 11.98 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.4474, allocations: 40.81 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4474, allocations: 0 / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001983/0.4476, allocations: 69.56 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.4476, allocations: 12.08 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4476, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.4477, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.655e-05/0.4478, allocations: 12 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.4478, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.862e-05/0.4478, allocations: 7.984 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.4478, allocations: 0 / 1.33 GB, free: 13.51 MB / 1.029 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.691e-05/0.4479, allocations: 116.1 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.4479, allocations: 3.938 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.4482, allocations: 84.94 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.4482, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4482, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.4482, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.4484, allocations: 132.6 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.4484, allocations: 3.938 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.311e-05/0.4484, allocations: 8 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.4484, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.4484, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4484, allocations: 8.016 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4484, allocations: 3.984 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.4487, allocations: 167.4 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.516e-06/0.4487, allocations: 4.234 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.4487, allocations: 0 / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.437e-05/0.4488, allocations: 8 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.4488, allocations: 7.984 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.4488, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.108e-05/0.4489, allocations: 83.31 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4489, allocations: 4 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002165/0.4491, allocations: 4 kB / 1.33 GB, free: 12.8 MB / 1.029 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.000694/0.4498, allocations: 0.7045 MB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001983/0.45, allocations: 31.97 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.45, allocations: 4.094 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.707e-05/0.4501, allocations: 23.92 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.4504, allocations: 10.17 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000481/0.4509, allocations: 147 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.164e-05/0.451, allocations: 59.34 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.758e-05/0.451, allocations: 4 kB / 1.331 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.57e-05/0.451, allocations: 11.44 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.451, allocations: 4.062 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.4816, allocations: 1.99 MB / 1.333 GB, free: 9.867 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.45, allocations: 9.797 kB / 1.333 GB, free: 9.859 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.45549307798501]