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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.008188/0.008188, allocations: 96 kB / 15.73 MB, free: 6.059 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.001919/0.001919, allocations: 189.4 kB / 16.67 MB, free: 5.98 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.829/2.829, allocations: 469.4 MB / 0.7421 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 71.89 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.303, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002734/0.3058, allocations: 1.453 MB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008215/0.3066, allocations: 455 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.361e-05/0.3067, allocations: 0 / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.973e-05/0.3067, allocations: 7.922 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.77e-05/0.3068, allocations: 7.922 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.307, allocations: 23.98 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.264e-05/0.3071, allocations: 23.92 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.61e-05/0.3072, allocations: 4 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.207e-05/0.3072, allocations: 15.88 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.795e-05/0.3073, allocations: 11.98 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.3073, allocations: 4 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.923e-05/0.3074, allocations: 23.97 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.3074, allocations: 7.922 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.65e-05/0.3074, allocations: 11.94 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.3075, allocations: 27.95 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3076, allocations: 0 / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3076, allocations: 0 / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.363e-05/0.3076, allocations: 0 / 1.222 GB, free: 12.57 MB / 0.9825 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.0004172/0.308, allocations: 347.3 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3081, allocations: 19.95 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.413e-05/0.3081, allocations: 34.75 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.3081, allocations: 4.891 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3082, allocations: 164.3 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3083, allocations: 8.375 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.3083, allocations: 4.375 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.3085, allocations: 49.8 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.3085, allocations: 0 / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.3085, allocations: 7.938 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3085, allocations: 0 / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.3087, allocations: 43.94 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.309, allocations: 248.9 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.3091, allocations: 38.55 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.311e-05/0.3092, allocations: 28.91 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.3094, allocations: 77.11 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.3094, allocations: 34.56 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.3094, allocations: 0 / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003629/0.3098, allocations: 89.53 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3098, allocations: 51.53 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.595e-05/0.3099, allocations: 105.8 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.3099, allocations: 25.7 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.31, allocations: 84.14 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.31, allocations: 3.953 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.3101, allocations: 21.7 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3102, allocations: 314.8 kB / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.3103, allocations: 15.98 kB / 1.223 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-05/0.3104, allocations: 19.98 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.3105, allocations: 36.81 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3105, allocations: 0 / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002094/0.3107, allocations: 69.61 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3108, allocations: 9.812 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3108, allocations: 7.984 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3108, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-05/0.3109, allocations: 4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.3109, allocations: 3.938 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.867e-05/0.311, allocations: 7.984 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.311, allocations: 4 kB / 1.224 GB, free: 10.38 MB / 0.9825 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.56e-05/0.311, allocations: 110.3 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.3111, allocations: 3.953 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.3113, allocations: 80.72 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3113, allocations: 3.984 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3113, allocations: 0 / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3113, allocations: 0 / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.3115, allocations: 161.6 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3115, allocations: 0 / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.272e-05/0.3116, allocations: 7.984 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3116, allocations: 0 / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.3116, allocations: 4.281 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.3116, allocations: 8 kB / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3116, allocations: 0 / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3119, allocations: 167.4 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.3119, allocations: 77.11 kB / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.312, allocations: 0 / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.691e-05/0.3121, allocations: 15.95 kB / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.3121, allocations: 0 / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.3121, allocations: 4 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.516e-05/0.3122, allocations: 87.27 kB / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3122, allocations: 0 / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002307/0.3124, allocations: 7.938 kB / 1.224 GB, free: 9.559 MB / 0.9825 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.0005552/0.313, allocations: 0.7007 MB / 1.225 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002127/0.3132, allocations: 39.89 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3132, allocations: 0 / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.08e-05/0.3133, allocations: 24.08 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.3136, allocations: 5.547 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004094/0.314, allocations: 146.9 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.3143, allocations: 0.6768 MB / 1.226 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.816e-05/0.3143, allocations: 0 / 1.226 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.3144, allocations: 19.36 kB / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3144, allocations: 0 / 1.226 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.3343, allocations: 1.431 MB / 1.227 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.072, allocations: 8.047 kB / 1.227 GB, free: 6.508 MB / 0.9825 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