Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_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.001128/0.001128, allocations: 108 kB / 15.6 MB, free: 132 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.001183/0.001183, allocations: 198.8 kB / 16.54 MB, free: 6.672 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.2 MB / 0.6647 GB, free: 272 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 67.89 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5713/0.5725, allocations: 140.4 MB / 0.9497 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002381/0.575, allocations: 1.765 MB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.5758, allocations: 0.6584 MB / 0.9521 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.5759, allocations: 1.406 kB / 0.9521 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.426e-05/0.5759, allocations: 7.875 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.855e-05/0.576, allocations: 18.55 kB / 0.9521 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.5764, allocations: 173.6 kB / 0.9523 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.5766, allocations: 117 kB / 0.9524 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.5767, allocations: 51.77 kB / 0.9524 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.5768, allocations: 60.72 kB / 0.9525 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.902e-05/0.5769, allocations: 57.19 kB / 0.9525 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.5769, allocations: 10.09 kB / 0.9526 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.964e-05/0.577, allocations: 44.59 kB / 0.9526 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.992e-05/0.5771, allocations: 33.33 kB / 0.9526 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.604e-05/0.5771, allocations: 52.97 kB / 0.9527 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.5773, allocations: 138.2 kB / 0.9528 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.5773, allocations: 3.938 kB / 0.9528 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5773, allocations: 0 / 0.9528 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.5773, allocations: 4 kB / 0.9528 GB, free: 6.828 MB / 0.7169 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.0004597/0.5778, allocations: 438.8 kB / 0.9532 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.5778, allocations: 9.406 kB / 0.9533 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.5778, allocations: 45.73 kB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007887/0.5786, allocations: 112.7 kB / 0.9534 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.61e-05/0.5787, allocations: 185.8 kB / 0.9536 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.319e-05/0.5788, allocations: 67.83 kB / 0.9536 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.5788, allocations: 9.031 kB / 0.9537 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004617/0.5793, allocations: 172.4 kB / 0.9538 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5793, allocations: 1.375 kB / 0.9538 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.5793, allocations: 4 kB / 0.9538 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.5793, allocations: 2.719 kB / 0.9538 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005667/0.5799, allocations: 156.5 kB / 0.954 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009019/0.5808, allocations: 485 kB / 0.9544 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009538/0.5818, allocations: 224.7 kB / 0.9546 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/0.5821, allocations: 79.47 kB / 0.9547 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.5821, allocations: 5.172 kB / 0.9547 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.5822, allocations: 35.67 kB / 0.9548 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.5822, allocations: 0 / 0.9548 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0009408/0.5831, allocations: 263.1 kB / 0.955 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.5831, allocations: 60.44 kB / 0.9551 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.113e-05/0.5832, allocations: 140.5 kB / 0.9552 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.5833, allocations: 30.73 kB / 0.9552 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.136e-05/0.5833, allocations: 109.4 kB / 0.9553 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.5833, allocations: 14.62 kB / 0.9554 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.5834, allocations: 28.45 kB / 0.9554 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.684e-05/0.5834, allocations: 321.5 kB / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.5837, allocations: 72.77 kB / 0.9558 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.584, allocations: 98.7 kB / 0.9559 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000561/0.5846, allocations: 163.8 kB / 0.956 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.5846, allocations: 0 / 0.956 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006325/0.5853, allocations: 202.3 kB / 0.9562 GB, free: 4 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.5853, allocations: 4.875 kB / 0.9562 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.5853, allocations: 5.406 kB / 0.9562 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.5853, allocations: 1.25 kB / 0.9562 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.5856, allocations: 35.3 kB / 0.9562 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.5856, allocations: 4 kB / 0.9562 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.5858, allocations: 28.97 kB / 0.9563 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.5858, allocations: 10.7 kB / 0.9563 GB, free: 3.957 MB / 0.7169 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 8.396e-05/0.5859, allocations: 118.6 kB / 0.9564 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.5859, allocations: 9.375 kB / 0.9564 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006539/0.5866, allocations: 209.9 kB / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5866, allocations: 1.031 kB / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5866, allocations: 0 / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.5866, allocations: 1.625 kB / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.5868, allocations: 237.3 kB / 0.9568 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5868, allocations: 0 / 0.9568 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002137/0.587, allocations: 31.83 kB / 0.9569 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.587, allocations: 1.469 kB / 0.9569 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.587, allocations: 7.938 kB / 0.9569 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5871, allocations: 1.125 kB / 0.9569 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5871, allocations: 3.984 kB / 0.9569 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006106/0.5877, allocations: 286.3 kB / 0.9572 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.5877, allocations: 88.66 kB / 0.9572 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.5877, allocations: 3.938 kB / 0.9572 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000288/0.588, allocations: 29.55 kB / 0.9573 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.5881, allocations: 1.375 kB / 0.9573 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.5881, allocations: 12.11 kB / 0.9573 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.828e-05/0.5882, allocations: 103.9 kB / 0.9574 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5882, allocations: 7.938 kB / 0.9574 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002553/0.5884, allocations: 28.56 kB / 0.9574 GB, free: 2.98 MB / 0.7169 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.0007763/0.5892, allocations: 0.822 MB / 0.9582 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006216/0.5898, allocations: 170.2 kB / 0.9584 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5898, allocations: 0 / 0.9584 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.5901, allocations: 82.42 kB / 0.9585 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.5905, allocations: 9.547 kB / 0.9585 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.593, allocations: 1.824 MB / 0.9603 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001725/0.5932, allocations: 0.7038 MB / 0.9609 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.065e-05/0.5933, allocations: 17.52 kB / 0.961 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.5934, allocations: 35.56 kB / 0.961 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.5934, allocations: 1.281 kB / 0.961 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03526/0.6287, allocations: 2.704 MB / 0.9636 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/7.739, allocations: 5.844 kB / 0.9636 GB, free: 14.36 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches