Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_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.007685/0.007685, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.001723/0.001723, allocations: 190.3 kB / 16.67 MB, free: 5.941 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.178/2.178, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001503, allocations: 63.91 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9682/0.9697, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002543/0.9723, allocations: 1.432 MB / 1.089 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000723/0.973, allocations: 473.2 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.509e-05/0.9731, allocations: 1.219 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.72e-05/0.9731, allocations: 3.938 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.219e-05/0.9732, allocations: 5.703 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.9734, allocations: 18.91 kB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.342e-05/0.9735, allocations: 25.23 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.483e-05/0.9736, allocations: 13.06 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.858e-05/0.9737, allocations: 16.97 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.9737, allocations: 10.91 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.9737, allocations: 2.219 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.147e-05/0.9738, allocations: 21.59 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.9738, allocations: 2.156 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.9738, allocations: 12.08 kB / 1.089 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.974, allocations: 41.98 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.974, allocations: 1.438 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.824e-06/0.974, allocations: 0 / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.974, allocations: 0 / 1.089 GB, free: 3.867 MB / 0.8575 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.0003764/0.9744, allocations: 349.2 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.9744, allocations: 9.531 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.64e-05/0.9744, allocations: 35.2 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.9745, allocations: 6.844 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.369e-05/0.9746, allocations: 166.9 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.9746, allocations: 1.125 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.9746, allocations: 2.375 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.9748, allocations: 52.22 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.9748, allocations: 9.703 kB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.455e-06/0.9748, allocations: 0 / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.9748, allocations: 1.125 kB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.975, allocations: 33.62 kB / 1.09 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002574/0.9753, allocations: 258.2 kB / 1.09 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.9754, allocations: 40.69 kB / 1.09 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.826e-05/0.9755, allocations: 21.06 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.9756, allocations: 82.02 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.9756, allocations: 35.47 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.9756, allocations: 0 / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003567/0.976, allocations: 84.42 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/0.976, allocations: 53.08 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.9761, allocations: 106.1 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.645e-06/0.9761, allocations: 26.95 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.797e-05/0.9761, allocations: 85.52 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.9762, allocations: 6.062 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.9762, allocations: 12.95 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.403e-05/0.9763, allocations: 321 kB / 1.091 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-05/0.9763, allocations: 17.58 kB / 1.091 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.781e-05/0.9764, allocations: 18.66 kB / 1.091 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.9766, allocations: 38.38 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.9766, allocations: 0 / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001975/0.9768, allocations: 71.23 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.9768, allocations: 5.047 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.9768, allocations: 1.062 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.9768, allocations: 0.75 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.618e-05/0.9769, allocations: 8.891 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.9769, allocations: 0.6562 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.628e-05/0.977, allocations: 5.672 kB / 1.091 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.977, allocations: 1.828 kB / 1.091 GB, free: 2.016 MB / 0.8575 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.468e-05/0.9771, allocations: 120.7 kB / 1.091 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.9771, allocations: 5 kB / 1.091 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.9773, allocations: 75.12 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.9773, allocations: 1.891 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.9774, allocations: 256 / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.9774, allocations: 1.094 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.9775, allocations: 168.1 kB / 1.092 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.9775, allocations: 9.219 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.239e-05/0.9776, allocations: 8.375 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.9776, allocations: 1.125 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.9776, allocations: 0 / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.9776, allocations: 1.75 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9776, allocations: 0 / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.9778, allocations: 166.9 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.9778, allocations: 79 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.9779, allocations: 1.891 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.874e-05/0.9779, allocations: 5.328 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.978, allocations: 10.42 kB / 1.092 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.978, allocations: 1.281 kB / 1.092 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.511e-05/0.978, allocations: 84.98 kB / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.978, allocations: 0 / 1.092 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002273/0.9783, allocations: 6 kB / 1.092 GB, free: 1.305 MB / 0.8575 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.00049/0.9788, allocations: 0.7015 MB / 1.093 GB, free: 16.63 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002246/0.979, allocations: 44 kB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.979, allocations: 0 / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.971e-05/0.9791, allocations: 20.62 kB / 1.093 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.9794, allocations: 8.219 kB / 1.093 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003902/0.9798, allocations: 137.2 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.98, allocations: 0.676 MB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.54e-05/0.9801, allocations: 6.297 kB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.9801, allocations: 13.45 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.9801, allocations: 1.25 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.9969, allocations: 1.435 MB / 1.095 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/8.289, allocations: 9.188 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches