Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_10_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.001964/0.001964, allocations: 108.6 kB / 15.73 MB, free: 76 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.002254/0.002254, allocations: 188.5 kB / 16.66 MB, free: 6.59 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.514/1.514, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.796/2.796, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3198, allocations: 151.6 MB / 1.166 GB, free: 7.305 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003697/0.3235, allocations: 1.443 MB / 1.168 GB, free: 5.844 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.3246, allocations: 471.8 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.608e-05/0.3247, allocations: 0 / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.423e-05/0.3247, allocations: 3.938 kB / 1.168 GB, free: 5.371 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.334e-05/0.3248, allocations: 3.938 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.3251, allocations: 19.98 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.526e-05/0.3252, allocations: 31.86 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.931e-05/0.3253, allocations: 7.984 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.894e-05/0.3253, allocations: 15.92 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.682e-05/0.3254, allocations: 11.94 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.3254, allocations: 0 / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-05/0.3255, allocations: 19.98 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.3256, allocations: 7.984 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.3256, allocations: 7.938 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.3257, allocations: 36.11 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3258, allocations: 0 / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of FrontEnd: time 4.649e-06/0.3258, allocations: 7.984 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.3258, allocations: 0 / 1.168 GB, free: 5.203 MB / 0.92 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.0006254/0.3264, allocations: 343.4 kB / 1.168 GB, free: 4.82 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3265, allocations: 8.031 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.3265, allocations: 30.75 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.3266, allocations: 8.891 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.3267, allocations: 164.3 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.3268, allocations: 4.375 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3268, allocations: 8.375 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.327, allocations: 49.8 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3271, allocations: 4 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-06/0.3271, allocations: 0 / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3271, allocations: 0 / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.3274, allocations: 31.95 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.3278, allocations: 252.9 kB / 1.169 GB, free: 4.168 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.328, allocations: 42.48 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.3282, allocations: 24.84 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001812/0.3283, allocations: 81.11 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.3284, allocations: 34.55 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.512e-06/0.3284, allocations: 3.938 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0005099/0.3289, allocations: 89.55 kB / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.329, allocations: 59.39 kB / 1.169 GB, free: 3.781 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3291, allocations: 97.86 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3292, allocations: 25.7 kB / 1.169 GB, free: 3.645 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.3292, allocations: 80.14 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.3293, allocations: 12.06 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.3293, allocations: 17.72 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3295, allocations: 318.8 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.3296, allocations: 16.23 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.3297, allocations: 11.98 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.33, allocations: 48.88 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.33, allocations: 0 / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003005/0.3303, allocations: 73.59 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.3303, allocations: 4 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3303, allocations: 0 / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.3304, allocations: 0 / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3305, allocations: 8 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3305, allocations: 0 / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.792e-05/0.3306, allocations: 15.95 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.3306, allocations: 0 / 1.17 GB, free: 3.023 MB / 0.92 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 0.0001076/0.3307, allocations: 113.8 kB / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.3308, allocations: 0 / 1.17 GB, free: 2.902 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003413/0.3311, allocations: 80.75 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3311, allocations: 0 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3311, allocations: 32 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3312, allocations: 7.938 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.3314, allocations: 165.5 kB / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3315, allocations: 0 / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.3315, allocations: 11.98 kB / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3316, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.3316, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.3316, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3316, allocations: 0 / 1.17 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.332, allocations: 167.5 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.808e-05/0.332, allocations: 85.05 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.3321, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.3322, allocations: 7.984 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.3323, allocations: 0 / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3323, allocations: 3.938 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.376e-05/0.3323, allocations: 87.27 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3324, allocations: 4.031 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004058/0.3328, allocations: 8 kB / 1.171 GB, free: 2.195 MB / 0.92 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.000813/0.3336, allocations: 0.7006 MB / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002936/0.3339, allocations: 39.98 kB / 1.171 GB, free: 1.426 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3339, allocations: 0 / 1.171 GB, free: 1.426 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.3341, allocations: 23.92 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.3345, allocations: 10 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.3351, allocations: 143 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.3355, allocations: 0.6769 MB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.139e-05/0.3356, allocations: 0 / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.068e-05/0.3356, allocations: 11.42 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of SimCode: time 6.72e-07/0.3356, allocations: 0 / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02675/0.3624, allocations: 1.417 MB / 1.174 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.351, allocations: 10.59 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches