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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 118.8 kB / 17.16 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 206.2 kB / 20.13 MB, free: 2.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.185/3.185, allocations: 0.5003 GB / 0.8026 GB, free: 6.812 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 79.89 kB / 1.165 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.274/1.276, allocations: 178.9 MB / 1.34 GB, free: 16.28 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002628/1.279, allocations: 1.462 MB / 1.342 GB, free: 15.25 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008244/1.28, allocations: 0.5005 MB / 1.342 GB, free: 14.9 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.989e-05/1.28, allocations: 0 / 1.342 GB, free: 14.9 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.835e-05/1.28, allocations: 5.781 kB / 1.342 GB, free: 14.9 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.931e-05/1.28, allocations: 4.656 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/1.28, allocations: 20.33 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.598e-05/1.28, allocations: 23.84 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/1.28, allocations: 12.41 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.078e-05/1.28, allocations: 6.734 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/1.28, allocations: 17.92 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/1.28, allocations: 6.156 kB / 1.342 GB, free: 14.85 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.278e-05/1.28, allocations: 21.98 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/1.28, allocations: 5.859 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/1.28, allocations: 11.38 kB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/1.281, allocations: 36.28 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/1.281, allocations: 5.125 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.743e-06/1.281, allocations: 0 / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.99e-06/1.281, allocations: 0 / 1.342 GB, free: 14.81 MB / 1.061 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.0004134/1.281, allocations: 338.3 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/1.281, allocations: 13.94 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.659e-05/1.281, allocations: 5.922 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.932e-05/1.281, allocations: 30.75 kB / 1.343 GB, free: 14.41 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/1.281, allocations: 23.3 kB / 1.343 GB, free: 14.4 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/1.281, allocations: 170.3 kB / 1.343 GB, free: 14.2 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.525e-06/1.281, allocations: 2.375 kB / 1.343 GB, free: 14.2 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/1.281, allocations: 1.75 kB / 1.343 GB, free: 14.2 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/1.282, allocations: 56.53 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/1.282, allocations: 0 / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/1.282, allocations: 0 / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/1.282, allocations: 1.094 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/1.282, allocations: 47.3 kB / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/1.282, allocations: 257.2 kB / 1.343 GB, free: 13.87 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/1.282, allocations: 42.78 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/1.282, allocations: 22.67 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/1.282, allocations: 2.328 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.417e-05/1.282, allocations: 35.22 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/1.282, allocations: 0 / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.000384/1.283, allocations: 92.81 kB / 1.343 GB, free: 13.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/1.283, allocations: 52.2 kB / 1.343 GB, free: 13.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.573e-05/1.283, allocations: 102 kB / 1.343 GB, free: 13.57 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/1.283, allocations: 30.62 kB / 1.343 GB, free: 13.54 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.717e-05/1.283, allocations: 90.12 kB / 1.344 GB, free: 13.45 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/1.283, allocations: 5.266 kB / 1.344 GB, free: 13.44 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/1.283, allocations: 13.62 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.656e-05/1.283, allocations: 321.2 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/1.283, allocations: 15.19 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.665e-05/1.283, allocations: 19.47 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/1.283, allocations: 47.02 kB / 1.344 GB, free: 13.08 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.283, allocations: 0.875 kB / 1.344 GB, free: 13.08 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002106/1.284, allocations: 69.78 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/1.284, allocations: 6.359 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.284, allocations: 0 / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/1.284, allocations: 4.031 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/1.284, allocations: 10.73 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/1.284, allocations: 1.312 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/1.284, allocations: 11 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/1.284, allocations: 0 / 1.344 GB, free: 13.04 MB / 1.061 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 4.913e-05/1.284, allocations: 112.4 kB / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/1.284, allocations: 1.953 kB / 1.344 GB, free: 12.92 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/1.284, allocations: 8.969 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/1.284, allocations: 5.547 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.284, allocations: 4.547 kB / 1.344 GB, free: 12.9 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/1.284, allocations: 0 / 1.344 GB, free: 12.9 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/1.284, allocations: 166.1 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/1.284, allocations: 1.188 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.926e-05/1.284, allocations: 9.906 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/1.284, allocations: 0.7031 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/1.284, allocations: 1.062 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.284, allocations: 0 / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.284, allocations: 2.422 kB / 1.344 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/1.284, allocations: 176.1 kB / 1.345 GB, free: 12.55 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.005e-05/1.284, allocations: 79.31 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/1.284, allocations: 4.703 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/1.285, allocations: 7.984 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/1.285, allocations: 1.891 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-06/1.285, allocations: 5.094 kB / 1.345 GB, free: 12.45 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.489e-05/1.285, allocations: 84.38 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of sort global known variables: time 6.1e-08/1.285, allocations: 4.875 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002189/1.285, allocations: 3.469 kB / 1.345 GB, free: 12.37 MB / 1.061 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.0004006/1.285, allocations: 0.705 MB / 1.345 GB, free: 11.69 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002443/1.285, allocations: 37.89 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/1.285, allocations: 0 / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.746e-05/1.286, allocations: 21.78 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/1.286, allocations: 7.953 kB / 1.345 GB, free: 11.68 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004378/1.286, allocations: 149 kB / 1.346 GB, free: 11.52 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/1.286, allocations: 0.6761 MB / 1.346 GB, free: 10.82 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.856e-05/1.286, allocations: 6.234 kB / 1.346 GB, free: 10.82 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/1.287, allocations: 13.58 kB / 1.346 GB, free: 10.81 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/1.287, allocations: 0 / 1.346 GB, free: 10.81 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/1.305, allocations: 1.463 MB / 1.348 GB, free: 10.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.345/9.65, allocations: 13.44 kB / 1.348 GB, free: 10.4 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.587690633023158]