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.00174/0.00174, allocations: 114.3 kB / 18.94 MB, free: 2.781 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.001592/0.001592, allocations: 213.6 kB / 22.25 MB, free: 5.172 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.645/1.645, allocations: 230.6 MB / 256 MB, free: 8.016 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.398/3.398, allocations: 0.49 GB / 0.7951 GB, free: 33.31 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.002042/0.002042, allocations: 66.94 kB / 1.154 GB, free: 25.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4523/0.4544, allocations: 176.1 MB / 1.326 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003501/0.4579, allocations: 1.478 MB / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.4592, allocations: 0.4989 MB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.231e-05/0.4592, allocations: 0 / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.499e-05/0.4593, allocations: 3.938 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.571e-05/0.4594, allocations: 11.91 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.4597, allocations: 19.98 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.4598, allocations: 27.88 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.4599, allocations: 7.984 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.46, allocations: 11.94 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.669e-05/0.4601, allocations: 15.92 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.4601, allocations: 4 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.4602, allocations: 23.97 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.437e-05/0.4602, allocations: 0 / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.337e-05/0.4603, allocations: 15.92 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.4604, allocations: 32.12 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4604, allocations: 0 / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.245e-06/0.4604, allocations: 0 / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.4604, allocations: 0 / 1.328 GB, free: 15.78 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.0005884/0.461, allocations: 266.3 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.4611, allocations: 12.03 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.4611, allocations: 34.75 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.348e-05/0.4612, allocations: 0.9375 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.4613, allocations: 130.3 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.4613, allocations: 384 / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.4614, allocations: 384 / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.4616, allocations: 53.8 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4616, allocations: 0 / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.4616, allocations: 0 / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.4616, allocations: 0 / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.4618, allocations: 35.97 kB / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.4623, allocations: 224 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.4624, allocations: 42.5 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.784e-05/0.4625, allocations: 20.91 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.4627, allocations: 11.98 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.4627, allocations: 30.56 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.4627, allocations: 0 / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0004095/0.4631, allocations: 85.58 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4632, allocations: 51.41 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.4633, allocations: 110 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.4633, allocations: 25.7 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.4634, allocations: 88.06 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.4634, allocations: 11.89 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.4634, allocations: 13.72 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4636, allocations: 314.8 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.503e-05/0.4637, allocations: 19.98 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.4638, allocations: 19.97 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.4639, allocations: 40.83 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4639, allocations: 0 / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002095/0.4641, allocations: 73.55 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.4641, allocations: 4 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.4642, allocations: 4.094 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.4642, allocations: 0 / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-05/0.4643, allocations: 11.98 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.4643, allocations: 0 / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.644e-05/0.4643, allocations: 4 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.4643, allocations: 0 / 1.33 GB, free: 13.88 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 0.0001267/0.4644, allocations: 114.3 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.4645, allocations: 8 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002498/0.4647, allocations: 68.97 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.4647, allocations: 4 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4647, allocations: 3.938 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4647, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.4649, allocations: 132.7 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4649, allocations: 0 / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.1e-05/0.465, allocations: 11.94 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.465, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.465, allocations: 4.031 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.465, allocations: 4 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.465, allocations: 3.984 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.4653, allocations: 159.4 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.673e-05/0.4653, allocations: 7.984 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.4653, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.994e-05/0.4654, allocations: 12.03 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.4654, allocations: 3.984 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.4654, allocations: 0 / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.609e-05/0.4655, allocations: 83.53 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4655, allocations: 3.938 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002303/0.4657, allocations: 11.94 kB / 1.33 GB, free: 13.18 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.0007926/0.4665, allocations: 0.7045 MB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002493/0.4668, allocations: 31.97 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4668, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.937e-05/0.4668, allocations: 24.02 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.4672, allocations: 14.33 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005859/0.4678, allocations: 139.1 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.4682, allocations: 0.6768 MB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.327e-05/0.4682, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.4683, allocations: 11.44 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of SimCode: time 1.132e-06/0.4683, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.5009, allocations: 1.529 MB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.36, allocations: 8.062 kB / 1.333 GB, free: 10.08 MB / 1.029 GB " [Timeout remaining time 289] (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.80367493000813]