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.004835/0.004839, allocations: 103 kB / 15.73 MB, free: 6.047 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.001168/0.001168, allocations: 196 kB / 16.68 MB, free: 5.965 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.305/2.305, allocations: 390.3 MB / 0.6648 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 67.89 kB / 0.9504 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133/1.135, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003419/1.139, allocations: 1.432 MB / 1.089 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001005/1.14, allocations: 464 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/1.14, allocations: 1.094 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/1.14, allocations: 4.547 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.009e-05/1.14, allocations: 9.641 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000244/1.14, allocations: 19.16 kB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.943e-05/1.141, allocations: 32.92 kB / 1.089 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/1.141, allocations: 8.578 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.922e-05/1.141, allocations: 14.14 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.775e-05/1.141, allocations: 10.38 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/1.141, allocations: 1.844 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.587e-05/1.141, allocations: 26.5 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.23e-05/1.141, allocations: 1.219 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.167e-05/1.141, allocations: 12.56 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/1.141, allocations: 33.86 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/1.141, allocations: 1.062 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/1.141, allocations: 4.562 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.129e-06/1.141, allocations: 0 / 1.089 GB, free: 3.895 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.0004345/1.142, allocations: 344.2 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/1.142, allocations: 9.875 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.575e-05/1.142, allocations: 32.44 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/1.142, allocations: 2.031 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.918e-05/1.142, allocations: 175.1 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/1.142, allocations: 1.969 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/1.142, allocations: 1.438 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/1.142, allocations: 56.42 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/1.142, allocations: 1.344 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/1.142, allocations: 0 / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/1.142, allocations: 0.5625 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/1.142, allocations: 33.16 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002856/1.143, allocations: 263.9 kB / 1.09 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/1.143, allocations: 41.12 kB / 1.09 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.298e-05/1.143, allocations: 19.59 kB / 1.09 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/1.143, allocations: 86 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/1.143, allocations: 36.42 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/1.143, allocations: 0 / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003855/1.143, allocations: 84.16 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/1.143, allocations: 61.2 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.331e-05/1.143, allocations: 98.31 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.847e-06/1.143, allocations: 25.7 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.611e-05/1.144, allocations: 86.72 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/1.144, allocations: 4.969 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/1.144, allocations: 16.72 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.453e-05/1.144, allocations: 321 kB / 1.091 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/1.144, allocations: 14.61 kB / 1.091 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.073e-05/1.144, allocations: 18.45 kB / 1.091 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/1.144, allocations: 41.3 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/1.144, allocations: 1.281 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002007/1.144, allocations: 66.95 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/1.144, allocations: 4.969 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.144, allocations: 0.8438 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/1.144, allocations: 0.5625 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/1.144, allocations: 9.094 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/1.144, allocations: 0.5156 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.81e-05/1.145, allocations: 14.31 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/1.145, allocations: 1.516 kB / 1.091 GB, free: 2.035 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 6.652e-05/1.145, allocations: 111.7 kB / 1.091 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/1.145, allocations: 5.281 kB / 1.091 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/1.145, allocations: 72.81 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.145, allocations: 0 / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.145, allocations: 9.594 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/1.145, allocations: 0 / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/1.145, allocations: 161.1 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.145, allocations: 0 / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/1.145, allocations: 8.984 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/1.145, allocations: 1.281 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/1.145, allocations: 0.5156 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.145, allocations: 0 / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.145, allocations: 1.375 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/1.145, allocations: 167.3 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.628e-05/1.145, allocations: 78.55 kB / 1.092 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/1.145, allocations: 5.5 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.692e-05/1.146, allocations: 13.72 kB / 1.092 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/1.146, allocations: 2.594 kB / 1.092 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/1.146, allocations: 1.125 kB / 1.092 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.042e-05/1.146, allocations: 93.77 kB / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.443e-06/1.146, allocations: 0 / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002217/1.146, allocations: 9 kB / 1.092 GB, free: 1.328 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.0005808/1.146, allocations: 0.6981 MB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000241/1.147, allocations: 39.38 kB / 1.093 GB, free: 16.65 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/1.147, allocations: 0 / 1.093 GB, free: 16.65 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/1.147, allocations: 25.67 kB / 1.093 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/1.147, allocations: 8.438 kB / 1.093 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/1.148, allocations: 137.3 kB / 1.093 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/1.148, allocations: 0.6766 MB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.837e-05/1.148, allocations: 5.797 kB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/1.148, allocations: 13.08 kB / 1.094 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.148, allocations: 1.219 kB / 1.094 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/1.174, allocations: 1.423 MB / 1.095 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/8.524, allocations: 11.84 kB / 1.095 GB, free: 15.38 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