Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_11_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.007031/0.007031, allocations: 99.34 kB / 15.73 MB, free: 6.039 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.001784/0.001784, allocations: 196 kB / 16.67 MB, free: 5.961 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.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.932/2.932, allocations: 469.8 MB / 0.7425 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 67.89 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3124, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002521/0.3149, allocations: 1.437 MB / 1.222 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008174/0.3158, allocations: 463 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.928e-05/0.3158, allocations: 3.938 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.533e-05/0.3158, allocations: 4 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.085e-05/0.3159, allocations: 3.938 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.3161, allocations: 23.91 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.076e-05/0.3162, allocations: 20 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.534e-05/0.3163, allocations: 7.984 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.914e-05/0.3163, allocations: 15.88 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.186e-05/0.3164, allocations: 19.97 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.3164, allocations: 0 / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.993e-05/0.3165, allocations: 19.98 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.3165, allocations: 7.938 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.3165, allocations: 11.92 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.3166, allocations: 27.95 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3167, allocations: 0 / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.788e-06/0.3167, allocations: 0 / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.3167, allocations: 3.938 kB / 1.222 GB, free: 12.24 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.0004481/0.3171, allocations: 347.3 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.3172, allocations: 15.97 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.3172, allocations: 30.75 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.3172, allocations: 8.891 kB / 1.223 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.3174, allocations: 172.3 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.3174, allocations: 384 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.3174, allocations: 384 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.3176, allocations: 57.78 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.3176, allocations: 0 / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.3176, allocations: 4 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.3176, allocations: 4 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.3178, allocations: 31.91 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003174/0.3181, allocations: 248.9 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.3183, allocations: 38.56 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.929e-05/0.3184, allocations: 28.89 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.3185, allocations: 81.11 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.3185, allocations: 34.56 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3185, allocations: 0 / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003552/0.3189, allocations: 89.53 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.319, allocations: 55.53 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.483e-05/0.319, allocations: 105.8 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.3191, allocations: 25.7 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.551e-05/0.3191, allocations: 80.14 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.3192, allocations: 7.953 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.3192, allocations: 13.72 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3193, allocations: 318.8 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/0.3194, allocations: 23.98 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.358e-05/0.3195, allocations: 11.98 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.3197, allocations: 40.83 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3197, allocations: 3.938 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002088/0.3199, allocations: 69.72 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.3199, allocations: 4 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3199, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.32, allocations: 0 / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.948e-05/0.32, allocations: 11.98 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3201, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.81e-05/0.3201, allocations: 11.92 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3201, allocations: 0 / 1.224 GB, free: 10.05 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 8.242e-05/0.3202, allocations: 113.8 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.3202, allocations: 11.98 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.3205, allocations: 68.72 kB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3205, allocations: 4 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3205, allocations: 3.938 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3205, allocations: 0 / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.3207, allocations: 161.6 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3207, allocations: 0 / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-05/0.3208, allocations: 16.02 kB / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3208, allocations: 0 / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.3208, allocations: 4 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3208, allocations: 0 / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3208, allocations: 0 / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.3211, allocations: 163.4 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.3211, allocations: 77.14 kB / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.3212, allocations: 8.25 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.392e-05/0.3212, allocations: 3.984 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.3213, allocations: 12 kB / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.3213, allocations: 0 / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.486e-05/0.3213, allocations: 79.28 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3214, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002267/0.3216, allocations: 15.92 kB / 1.225 GB, free: 9.23 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.0006143/0.3222, allocations: 0.6973 MB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.3224, allocations: 43.91 kB / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3224, allocations: 96 / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.633e-05/0.3225, allocations: 23.97 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.3228, allocations: 8 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.3232, allocations: 138.9 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.3235, allocations: 0.6768 MB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.534e-05/0.3236, allocations: 4 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.875e-05/0.3236, allocations: 7.5 kB / 1.226 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3236, allocations: 7.938 kB / 1.226 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.3472, allocations: 1.439 MB / 1.228 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.464, allocations: 4.703 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches