Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_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.001513/0.001513, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 197.7 kB / 16.53 MB, free: 6.66 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.667/2.667, allocations: 469.4 MB / 0.742 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 65.22 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002587/0.2602, allocations: 1.443 MB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007409/0.261, allocations: 464.6 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.137e-05/0.261, allocations: 0 / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.2611, allocations: 3.938 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.186e-05/0.2612, allocations: 7.938 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.2613, allocations: 19.98 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.642e-05/0.2614, allocations: 27.92 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.158e-05/0.2615, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.99e-05/0.2616, allocations: 19.86 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.836e-05/0.2616, allocations: 11.92 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.2616, allocations: 4 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.2617, allocations: 15.98 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.2617, allocations: 11.98 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.2618, allocations: 7.938 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.743e-05/0.2619, allocations: 27.95 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2619, allocations: 0 / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2619, allocations: 7.938 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.2619, allocations: 3.984 kB / 1.066 GB, free: 12.43 MB / 0.8262 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.0003861/0.2623, allocations: 343.7 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2623, allocations: 15.97 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.2624, allocations: 34.73 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.256e-05/0.2624, allocations: 0.9375 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.615e-05/0.2625, allocations: 172.3 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.2625, allocations: 4.375 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-06/0.2625, allocations: 384 / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.2627, allocations: 53.8 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.2627, allocations: 0 / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.2627, allocations: 0 / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2627, allocations: 0 / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.2629, allocations: 35.95 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002862/0.2632, allocations: 252.8 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.2633, allocations: 42.48 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.863e-05/0.2634, allocations: 24.91 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.2636, allocations: 81.11 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.2636, allocations: 38.55 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.2636, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003414/0.2639, allocations: 77.66 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.264, allocations: 59.33 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.781e-05/0.2641, allocations: 101.9 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.2641, allocations: 29.83 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.216e-05/0.2641, allocations: 80.14 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.2641, allocations: 7.844 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.2642, allocations: 21.7 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.2643, allocations: 314.8 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.81e-05/0.2644, allocations: 15.98 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.42e-05/0.2644, allocations: 15.98 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.2646, allocations: 44.88 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2646, allocations: 0 / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001918/0.2648, allocations: 69.59 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2648, allocations: 8 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2648, allocations: 3.938 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.2648, allocations: 0 / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/0.2649, allocations: 8.031 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2649, allocations: 4 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.742e-05/0.265, allocations: 7.984 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.265, allocations: 0 / 1.068 GB, free: 10.25 MB / 0.8262 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.425e-05/0.2651, allocations: 109.8 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.2651, allocations: 7.906 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.2653, allocations: 77.02 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2654, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2654, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2654, allocations: 3.938 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.2655, allocations: 161.6 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2655, allocations: 0 / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-05/0.2656, allocations: 11.92 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2656, allocations: 0 / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.2656, allocations: 4 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2656, allocations: 0 / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2656, allocations: 4.031 kB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.2658, allocations: 163.5 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.2659, allocations: 77.11 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.2659, allocations: 0 / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.568e-05/0.266, allocations: 7.984 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.266, allocations: 12.02 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.266, allocations: 4 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.522e-05/0.2661, allocations: 83.27 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2661, allocations: 0 / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002226/0.2663, allocations: 4 kB / 1.068 GB, free: 9.438 MB / 0.8262 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.0004975/0.2668, allocations: 0.705 MB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.267, allocations: 39.95 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.267, allocations: 4 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.333e-05/0.2671, allocations: 15.92 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.2674, allocations: 8.156 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.2678, allocations: 143.1 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.2681, allocations: 0.6767 MB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.21e-05/0.2681, allocations: 0 / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.2681, allocations: 11.42 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2681, allocations: 4 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.2852, allocations: 1.408 MB / 1.071 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.602, allocations: 7.984 kB / 1.071 GB, free: 6.402 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches