Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 193.2 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.374/2.374, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.91 kB / 0.8686 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5519/0.5532, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002329/0.5555, allocations: 1.503 MB / 1.018 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000662/0.5562, allocations: 471.7 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.154e-05/0.5562, allocations: 0 / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.5563, allocations: 4 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.796e-05/0.5563, allocations: 3.938 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.5565, allocations: 15.98 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.845e-05/0.5566, allocations: 23.92 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.12e-05/0.5566, allocations: 4 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.121e-05/0.5567, allocations: 15.92 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.797e-05/0.5567, allocations: 7.984 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 9.478e-06/0.5567, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.322e-05/0.5568, allocations: 23.92 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.5568, allocations: 15.92 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.5569, allocations: 7.938 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.838e-05/0.557, allocations: 27.95 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.557, allocations: 3.938 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.31e-07/0.557, allocations: 4 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.055e-06/0.557, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 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.0003688/0.5574, allocations: 337.8 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.5574, allocations: 16.02 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.676e-05/0.5574, allocations: 38.69 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.027e-05/0.5575, allocations: 0.9375 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.5576, allocations: 172.3 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.5576, allocations: 384 / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.5576, allocations: 384 / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.5578, allocations: 57.73 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.5578, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.5578, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.5578, allocations: 0 / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.558, allocations: 43.94 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002642/0.5582, allocations: 244.9 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.5584, allocations: 42.48 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.002e-05/0.5584, allocations: 24.91 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.5586, allocations: 85.11 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.5586, allocations: 30.56 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.5586, allocations: 0 / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003175/0.5589, allocations: 85.55 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.559, allocations: 51.41 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.651e-05/0.559, allocations: 110 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.559, allocations: 29.64 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.5591, allocations: 80.14 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.52e-05/0.5591, allocations: 7.906 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.5591, allocations: 17.7 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.5592, allocations: 314.8 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.046e-05/0.5593, allocations: 15.98 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.695e-05/0.5594, allocations: 19.98 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.5596, allocations: 44.81 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5596, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002445/0.5598, allocations: 57.92 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.5599, allocations: 9.562 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.5599, allocations: 8.078 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.5599, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.924e-05/0.56, allocations: 7.938 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.56, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.242e-05/0.56, allocations: 7.984 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.5601, allocations: 3.938 kB / 1.021 GB, free: 14.43 MB / 0.7794 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 6.057e-05/0.5601, allocations: 110.3 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.5602, allocations: 7.938 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.5604, allocations: 76.77 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.5604, allocations: 3.984 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5604, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.5604, allocations: 0 / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.5606, allocations: 161.6 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5606, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.343e-05/0.5606, allocations: 7.984 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.5606, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.5607, allocations: 11.97 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5607, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5607, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.5609, allocations: 167.4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.5609, allocations: 77.11 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.5609, allocations: 0 / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.258e-05/0.561, allocations: 12.02 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.943e-05/0.561, allocations: 4 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.5611, allocations: 4 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.288e-05/0.5611, allocations: 83.27 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5611, allocations: 0 / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000217/0.5613, allocations: 4 kB / 1.021 GB, free: 13.61 MB / 0.7794 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.0004491/0.5618, allocations: 0.7046 MB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001797/0.562, allocations: 39.95 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.562, allocations: 4 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.613e-05/0.5621, allocations: 20.08 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.5623, allocations: 3.938 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003494/0.5627, allocations: 152.8 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.5629, allocations: 0.677 MB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.246e-05/0.5629, allocations: 0 / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.675e-05/0.5629, allocations: 15.42 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.5629, allocations: 4.062 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3327/0.8957, allocations: 1.219 MB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003366/0.8961, allocations: 203.3 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/2.539, allocations: 0 / 1.024 GB, free: 10.52 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches