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.0008519/0.0008519, 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.0008798/0.0008798, allocations: 165.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.8917/0.8917, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.759/1.759, allocations: 377.8 MB / 0.6221 GB, free: 8.66 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.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: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 0.981 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.037e-05/2.186e-05, allocations: 4.953 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002005/0.002026, allocations: 1.468 MB / 0.9824 GB, free: 1.098 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006463/0.002673, allocations: 474.7 kB / 0.9828 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.422e-05/0.002707, allocations: 0 / 0.9828 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.665e-05/0.002734, allocations: 3.984 kB / 0.9829 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.002796, allocations: 7.875 kB / 0.9829 GB, free: 0.6172 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.003009, allocations: 19.92 kB / 0.9829 GB, free: 0.5977 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.218e-05/0.003071, allocations: 27.92 kB / 0.9829 GB, free: 0.5703 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.866e-05/0.003159, allocations: 7.984 kB / 0.9829 GB, free: 0.5625 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.226e-05/0.003232, allocations: 23.86 kB / 0.9829 GB, free: 0.5391 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.227e-05/0.003264, allocations: 4 kB / 0.9829 GB, free: 0.5352 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.003278, allocations: 4 kB / 0.9829 GB, free: 0.5312 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.561e-05/0.003333, allocations: 15.98 kB / 0.983 GB, free: 0.5156 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.003347, allocations: 0 / 0.983 GB, free: 0.5156 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.804e-05/0.003366, allocations: 11.98 kB / 0.983 GB, free: 0.5039 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.003478, allocations: 31.89 kB / 0.983 GB, free: 484 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.00348, allocations: 0 / 0.983 GB, free: 484 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.382e-06/0.003481, allocations: 0 / 0.983 GB, free: 484 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.003485, allocations: 4 kB / 0.983 GB, free: 480 kB / 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.0003356/0.003821, allocations: 266.3 kB / 0.9833 GB, free: 184 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.00386, allocations: 12.03 kB / 0.9833 GB, free: 172 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.604e-05/0.003886, allocations: 30.75 kB / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.024e-05/0.003906, allocations: 4.891 kB / 0.9833 GB, free: 128 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.004021, allocations: 117.8 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-06/0.00403, allocations: 384 / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-06/0.004037, allocations: 384 / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.004161, allocations: 54.12 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.004167, allocations: 4.188 kB / 0.9835 GB, free: 15.92 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.004176, allocations: 4.125 kB / 0.9835 GB, free: 15.92 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.004182, allocations: 4 kB / 0.9835 GB, free: 15.91 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.938e-05/0.004271, allocations: 35.95 kB / 0.9835 GB, free: 15.88 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002673/0.004538, allocations: 216.1 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.117e-05/0.004619, allocations: 38.5 kB / 0.9838 GB, free: 15.58 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.004667, allocations: 28.77 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.553e-05/0.004743, allocations: 8 kB / 0.9838 GB, free: 15.54 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.004762, allocations: 34.56 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.004763, allocations: 7.938 kB / 0.9838 GB, free: 15.49 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0002182/0.004981, allocations: 77.59 kB / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.005011, allocations: 55.41 kB / 0.984 GB, free: 15.34 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.471e-05/0.005066, allocations: 101.8 kB / 0.9841 GB, free: 15.23 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.227e-06/0.005075, allocations: 25.7 kB / 0.9841 GB, free: 15.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.439e-05/0.005109, allocations: 92.27 kB / 0.9842 GB, free: 15.11 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.005125, allocations: 3.953 kB / 0.9842 GB, free: 15.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.005149, allocations: 17.66 kB / 0.9842 GB, free: 15.08 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.005255, allocations: 318.8 kB / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.148e-05/0.005296, allocations: 11.98 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.575e-05/0.005332, allocations: 20 kB / 0.9845 GB, free: 14.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.491e-05/0.005407, allocations: 37.14 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.005409, allocations: 7.984 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000105/0.005514, allocations: 65.61 kB / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.005527, allocations: 8 kB / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.005531, allocations: 0 / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.005541, allocations: 0 / 0.9846 GB, free: 14.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.837e-05/0.0056, allocations: 7.984 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.005606, allocations: 7.938 kB / 0.9847 GB, free: 14.59 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.234e-05/0.005628, allocations: 8.016 kB / 0.9847 GB, free: 14.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.005632, allocations: 4 kB / 0.9847 GB, free: 14.57 MB / 0.948 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 4.706e-05/0.005679, allocations: 109.8 kB / 0.9848 GB, free: 14.46 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.005694, allocations: 11.89 kB / 0.9848 GB, free: 14.45 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.005819, allocations: 68.97 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.005821, allocations: 0 / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.005824, allocations: 0 / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.005827, allocations: 4 kB / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.689e-05/0.005924, allocations: 132.8 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.005926, allocations: 3.938 kB / 0.985 GB, free: 14.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.403e-05/0.00595, allocations: 7.984 kB / 0.985 GB, free: 14.19 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.005951, allocations: 4 kB / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-06/0.005956, allocations: 0 / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005957, allocations: 0 / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.005958, allocations: 0 / 0.985 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.006077, allocations: 163.5 kB / 0.9851 GB, free: 14.01 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.342e-06/0.006084, allocations: 15.91 kB / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-06/0.006092, allocations: 0 / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.692e-05/0.006129, allocations: 7.984 kB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.006161, allocations: 4 kB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.006163, allocations: 3.938 kB / 0.9852 GB, free: 13.98 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.608e-05/0.006189, allocations: 83.27 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006189, allocations: 0 / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001511/0.00634, allocations: 11.94 kB / 0.9853 GB, free: 13.88 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 (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.0004305/0.00677, allocations: 0.7045 MB / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000126/0.006896, allocations: 35.95 kB / 0.986 GB, free: 13.12 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.006898, allocations: 0 / 0.986 GB, free: 13.12 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.043e-05/0.006938, allocations: 19.98 kB / 0.986 GB, free: 13.1 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.007153, allocations: 7.984 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.007466, allocations: 146.6 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.824e-05/0.007504, allocations: 63.36 kB / 0.9862 GB, free: 12.82 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.911e-05/0.007524, allocations: 0 / 0.9862 GB, free: 12.82 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.007555, allocations: 12.48 kB / 0.9862 GB, free: 12.81 MB / 0.948 GB Notification: Performance of SimCode: time 3.71e-07/0.007555, allocations: 0 / 0.9862 GB, free: 12.81 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.02367, allocations: 2.093 MB / 0.9883 GB, free: 10.85 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.031/7.055, allocations: 18.84 kB / 0.9883 GB, free: 10.84 MB / 0.948 GB " [Timeout remaining time 293] (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/jenkins/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: 11.10589403565973]