Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.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.001211/0.001211, allocations: 105.5 kB / 19.73 MB, free: 2.223 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.001361/0.001361, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.56/1.56, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.249/3.249, allocations: 0.49 GB / 0.7959 GB, free: 33.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.SmoothBlocks,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_SmoothBlocks",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.002322/0.002322, allocations: 66.17 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4216, allocations: 176.1 MB / 1.327 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.004047/0.4257, allocations: 1.826 MB / 1.328 GB, free: 92 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.4274, allocations: 0.7519 MB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.4275, allocations: 0 / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.08e-05/0.4276, allocations: 7.875 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.4277, allocations: 23.78 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008097/0.4285, allocations: 177.6 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.4288, allocations: 131.6 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.429, allocations: 41.83 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.4292, allocations: 63.77 kB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.4293, allocations: 51.75 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.552e-05/0.4294, allocations: 15.94 kB / 1.33 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.4295, allocations: 51.97 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.76e-05/0.4296, allocations: 23.92 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.31e-05/0.4296, allocations: 63.64 kB / 1.33 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.43, allocations: 155.4 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.43, allocations: 0 / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.443e-06/0.43, allocations: 3.938 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.43, allocations: 0 / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007462/0.4307, allocations: 369.7 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.4308, allocations: 12.03 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.517e-05/0.4308, allocations: 4.141 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.325e-05/0.4309, allocations: 42.75 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.4319, allocations: 128.7 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.4322, allocations: 156.7 kB / 1.331 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.4324, allocations: 118.9 kB / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.4324, allocations: 8 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005856/0.433, allocations: 175.5 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.433, allocations: 0 / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.433, allocations: 0 / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.433, allocations: 4 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00065/0.4337, allocations: 163.8 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.435, allocations: 461 kB / 1.332 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.4361, allocations: 218.3 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.4364, allocations: 76.91 kB / 1.332 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.4364, allocations: 7.938 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.4365, allocations: 34.55 kB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.4365, allocations: 0 / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.001108/0.4376, allocations: 269.3 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.4376, allocations: 51.41 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.4378, allocations: 152.1 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.4378, allocations: 25.7 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.547e-05/0.4379, allocations: 112.2 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.438, allocations: 15.86 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.438, allocations: 25.7 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4382, allocations: 322.8 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.4385, allocations: 71.92 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.4388, allocations: 94.48 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/0.4395, allocations: 166.4 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4395, allocations: 3.938 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007583/0.4402, allocations: 205.5 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.4403, allocations: 4 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4403, allocations: 4 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4403, allocations: 0 / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.4406, allocations: 35.95 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.4406, allocations: 0 / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.4408, allocations: 35.84 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4408, allocations: 4 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.0001287/0.4409, allocations: 126.2 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.441, allocations: 11.89 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007781/0.4417, allocations: 202.2 kB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.4417, allocations: 7.984 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4418, allocations: 0 / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4418, allocations: 0 / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.4421, allocations: 209.2 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4421, allocations: 384 / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.4423, allocations: 35.95 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.4423, allocations: 7.984 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.4423, allocations: 8 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4423, allocations: 3.938 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4423, allocations: 0 / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000746/0.4431, allocations: 291.2 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.726e-05/0.4431, allocations: 7.891 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.4431, allocations: 4 kB / 1.334 GB, free: 9.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.4434, allocations: 31.95 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.4435, allocations: 3.984 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.4435, allocations: 7.984 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.575e-05/0.4436, allocations: 109.1 kB / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4436, allocations: 4 kB / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002784/0.4438, allocations: 23.94 kB / 1.334 GB, free: 9.645 MB / 1.029 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 (6): * Single equations (assignments): 6 * 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.001129/0.445, allocations: 0.8216 MB / 1.335 GB, free: 8.797 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007305/0.4457, allocations: 155.8 kB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4457, allocations: 4.125 kB / 1.335 GB, free: 8.641 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.446, allocations: 83.91 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.4464, allocations: 8 kB / 1.335 GB, free: 8.551 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.4498, allocations: 1.842 MB / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.4502, allocations: 0.7002 MB / 1.338 GB, free: 5.895 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.202e-05/0.4503, allocations: 19.73 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.4504, allocations: 35.41 kB / 1.338 GB, free: 5.84 MB / 1.029 GB Notification: Performance of SimCode: time 9.92e-07/0.4504, allocations: 8 kB / 1.338 GB, free: 5.832 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.4745, allocations: 2.997 MB / 1.341 GB, free: 2.984 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.95, allocations: 7.953 kB / 1.341 GB, free: 2.98 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothBlocks.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: 19.128064904012717]