Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.SmoothBlocks,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks",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.001275/0.001275, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001292/0.001292, allocations: 197 kB / 16.14 MB, free: 6.711 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.362/2.362, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 59.91 kB / 0.8686 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5255/0.5268, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003017/0.5299, allocations: 1.84 MB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.531, allocations: 0.6709 MB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.928e-05/0.5311, allocations: 0 / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.776e-05/0.5311, allocations: 7.922 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.881e-05/0.5312, allocations: 15.88 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.5317, allocations: 149 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000134/0.5319, allocations: 115.7 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.532, allocations: 49.11 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.5322, allocations: 59.69 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.985e-05/0.5323, allocations: 51.77 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.538e-05/0.5323, allocations: 4 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.5324, allocations: 47.95 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.465e-05/0.5325, allocations: 31.84 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.5325, allocations: 51.72 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.5327, allocations: 137.9 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.5327, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.12e-07/0.5327, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.5327, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 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.0005907/0.5333, allocations: 439.1 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.5334, allocations: 15.97 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.062e-05/0.5334, allocations: 34.75 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008455/0.5343, allocations: 116.6 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.5344, allocations: 180.2 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.371e-05/0.5345, allocations: 67.97 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.5346, allocations: 4.375 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.5351, allocations: 173.4 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.5351, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.5351, allocations: 4 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.5351, allocations: 3.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005974/0.5357, allocations: 159.8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.5368, allocations: 485.8 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009817/0.5378, allocations: 226.3 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.5381, allocations: 80.91 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.5381, allocations: 8 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.5382, allocations: 30.56 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.5382, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0009654/0.5391, allocations: 265.5 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.5392, allocations: 51.41 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.5393, allocations: 135.9 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.5393, allocations: 25.7 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.014e-05/0.5394, allocations: 116 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.5395, allocations: 19.8 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.5395, allocations: 29.7 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.5396, allocations: 318.8 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.5399, allocations: 79.91 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.5402, allocations: 94.5 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/0.5408, allocations: 158.4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5408, allocations: 3.938 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006361/0.5414, allocations: 197.4 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.5415, allocations: 11.98 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.5415, allocations: 3.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.5415, allocations: 4.062 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.5418, allocations: 35.95 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5418, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.542, allocations: 27.81 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.542, allocations: 8 kB / 1.023 GB, free: 11.79 MB / 0.7794 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.000102/0.5421, allocations: 118.4 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.5422, allocations: 11.91 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006827/0.5429, allocations: 210 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5429, allocations: 4 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.5429, allocations: 4.375 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.5429, allocations: 3.938 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.5431, allocations: 237.9 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.5432, allocations: 4 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.5434, allocations: 35.95 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.5434, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.5434, allocations: 3.938 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5434, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.5434, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.5441, allocations: 287.2 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.5442, allocations: 89 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.5442, allocations: 3.938 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.5445, allocations: 39.94 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.5445, allocations: 4 kB / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.5446, allocations: 7.984 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.422e-05/0.5446, allocations: 104.5 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5446, allocations: 0 / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002608/0.5449, allocations: 27.84 kB / 1.024 GB, free: 10.52 MB / 0.7794 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.0009283/0.5458, allocations: 0.8215 MB / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006147/0.5465, allocations: 163.8 kB / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5465, allocations: 0 / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002869/0.5468, allocations: 83.98 kB / 1.025 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.5472, allocations: 13.88 kB / 1.025 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.5501, allocations: 1.856 MB / 1.027 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.5503, allocations: 0.7043 MB / 1.028 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.806e-05/0.5504, allocations: 12 kB / 1.028 GB, free: 6.727 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.619e-05/0.5505, allocations: 35.42 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.5505, allocations: 0 / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5821/1.133, allocations: 2.499 MB / 1.03 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000294/1.133, allocations: 194.5 kB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/3, allocations: 0 / 1.031 GB, free: 4.031 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches