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.006079/0.006079, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001323/0.001323, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.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.396/2.396, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 66.72 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2551, allocations: 140.4 MB / 1.087 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00268/0.2578, allocations: 1.435 MB / 1.089 GB, free: 0.4961 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007295/0.2586, allocations: 473.2 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.2586, allocations: 0 / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.59e-05/0.2587, allocations: 3.938 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.995e-05/0.2587, allocations: 3.938 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.2589, allocations: 24.03 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.41e-05/0.259, allocations: 27.88 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.011e-05/0.2591, allocations: 0 / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.296e-05/0.2592, allocations: 19.86 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.609e-05/0.2592, allocations: 8 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.2592, allocations: 7.984 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.47e-05/0.2593, allocations: 19.97 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.283e-05/0.2593, allocations: 7.938 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.2594, allocations: 11.88 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.2595, allocations: 31.94 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2595, allocations: 4 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2595, allocations: 7.938 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.269e-06/0.2595, allocations: 0 / 1.089 GB, free: 15.85 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.000442/0.26, allocations: 338.3 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.26, allocations: 12.03 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.26, allocations: 34.69 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.2601, allocations: 0.9375 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.2602, allocations: 169 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2602, allocations: 8.375 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.2602, allocations: 384 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.2604, allocations: 53.8 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2604, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.2605, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.2605, allocations: 0 / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.2607, allocations: 35.95 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003089/0.261, allocations: 256.7 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.2611, allocations: 38.59 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.968e-05/0.2612, allocations: 24.91 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.2613, allocations: 85.09 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.2614, allocations: 30.56 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.2614, allocations: 4 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003558/0.2617, allocations: 81.59 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.2618, allocations: 55.39 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.691e-05/0.2618, allocations: 101.9 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.2619, allocations: 25.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.2619, allocations: 80.42 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.2619, allocations: 19.95 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.262, allocations: 13.72 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.511e-05/0.2621, allocations: 314.8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.797e-05/0.2622, allocations: 15.98 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.893e-05/0.2622, allocations: 19.97 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.2624, allocations: 40.89 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2624, allocations: 0 / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002019/0.2626, allocations: 69.59 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2626, allocations: 8 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.2627, allocations: 3.938 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2627, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.364e-05/0.2628, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2628, allocations: 8.016 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.794e-05/0.2628, allocations: 8 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2628, allocations: 3.938 kB / 1.091 GB, free: 13.68 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.58e-05/0.2629, allocations: 109.8 kB / 1.091 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.2629, allocations: 11.89 kB / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/0.2632, allocations: 76.7 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2632, allocations: 32 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2632, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.2632, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.2634, allocations: 161.6 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2634, allocations: 256 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.744e-05/0.2634, allocations: 7.984 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2635, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2635, allocations: 4 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2635, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2635, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002361/0.2637, allocations: 167.5 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.342e-05/0.2638, allocations: 77.11 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.2638, allocations: 3.984 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.379e-05/0.2639, allocations: 4 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.2639, allocations: 11.94 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.2639, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.837e-05/0.264, allocations: 87.3 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.264, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002332/0.2642, allocations: 8 kB / 1.092 GB, free: 12.86 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.0005198/0.2647, allocations: 0.7007 MB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.265, allocations: 43.89 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.265, allocations: 4 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.553e-05/0.2651, allocations: 15.98 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.2654, allocations: 2.031 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.2658, allocations: 147.4 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.266, allocations: 0.6767 MB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.668e-05/0.266, allocations: 3.984 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.2661, allocations: 7.438 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.2661, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.2834, allocations: 1.422 MB / 1.095 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.275/7.558, allocations: 18.47 kB / 1.095 GB, free: 9.812 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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