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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0007755/0.0007754, allocations: 89.81 kB / 15.36 MB, free: 0.7383 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.007463/0.007463, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.223/1.223, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002875/0.0002875, allocations: 15.98 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5501/0.5504, allocations: 142.4 MB / 0.9552 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001378/0.5518, allocations: 1.475 MB / 0.9566 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007826/0.5526, allocations: 0.6395 MB / 0.9572 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.5527, allocations: 5.188 kB / 0.9572 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.244e-05/0.5527, allocations: 9.109 kB / 0.9572 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.269e-05/0.5528, allocations: 9.031 kB / 0.9573 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.5532, allocations: 150.7 kB / 0.9574 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.5533, allocations: 121 kB / 0.9575 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.5534, allocations: 48.3 kB / 0.9576 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.587e-05/0.5535, allocations: 51.84 kB / 0.9576 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.332e-05/0.5536, allocations: 35.03 kB / 0.9576 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.5536, allocations: 3.438 kB / 0.9576 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.669e-05/0.5537, allocations: 46.44 kB / 0.9577 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.566e-05/0.5538, allocations: 21.55 kB / 0.9577 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.5538, allocations: 68.77 kB / 0.9578 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.554, allocations: 137.8 kB / 0.9579 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.554, allocations: 1.594 kB / 0.9579 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.242e-06/0.554, allocations: 0 / 0.9579 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.554, allocations: 4 kB / 0.9579 GB, free: 5.602 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.0004345/0.5544, allocations: 417.5 kB / 0.9583 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.5545, allocations: 10.41 kB / 0.9583 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.5545, allocations: 40.72 kB / 0.9584 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008147/0.5553, allocations: 147.9 kB / 0.9585 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.516e-05/0.5554, allocations: 188.4 kB / 0.9587 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.799e-05/0.5555, allocations: 68.44 kB / 0.9587 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.5555, allocations: 5.281 kB / 0.9588 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.556, allocations: 200.3 kB / 0.9589 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.5561, allocations: 0 / 0.9589 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.5561, allocations: 5.531 kB / 0.959 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.5561, allocations: 9.578 kB / 0.959 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.5567, allocations: 188.1 kB / 0.9591 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009298/0.5576, allocations: 0.4947 MB / 0.9596 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009927/0.5586, allocations: 277.4 kB / 0.9599 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.5589, allocations: 99.75 kB / 0.96 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.559, allocations: 1.344 kB / 0.96 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.308e-05/0.559, allocations: 35.91 kB / 0.96 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.559, allocations: 0 / 0.96 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001002/0.56, allocations: 314.2 kB / 0.9603 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.688e-05/0.56, allocations: 52.5 kB / 0.9604 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.126e-05/0.5601, allocations: 135.9 kB / 0.9605 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.5601, allocations: 34.64 kB / 0.9605 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.5602, allocations: 114.1 kB / 0.9606 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.5602, allocations: 26.41 kB / 0.9607 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.5602, allocations: 15.53 kB / 0.9607 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.933e-05/0.5603, allocations: 321.3 kB / 0.961 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.5606, allocations: 89.14 kB / 0.9611 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.5609, allocations: 110 kB / 0.9612 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000598/0.5615, allocations: 202.7 kB / 0.9614 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5615, allocations: 1.312 kB / 0.9614 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006659/0.5622, allocations: 233.5 kB / 0.9616 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.5622, allocations: 4.656 kB / 0.9616 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.5622, allocations: 9.031 kB / 0.9616 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.5623, allocations: 1.094 kB / 0.9616 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.5625, allocations: 46.36 kB / 0.9617 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.5625, allocations: 1.906 kB / 0.9617 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.5627, allocations: 39.53 kB / 0.9617 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.5628, allocations: 11.19 kB / 0.9617 GB, free: 2.707 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 6.721e-05/0.5628, allocations: 114.7 kB / 0.9618 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.5629, allocations: 12.25 kB / 0.9618 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007144/0.5636, allocations: 243.1 kB / 0.9621 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.5636, allocations: 5.031 kB / 0.9621 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.5636, allocations: 0 / 0.9621 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.5636, allocations: 0.8125 kB / 0.9621 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.5638, allocations: 238 kB / 0.9623 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5638, allocations: 0 / 0.9623 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.564, allocations: 44.33 kB / 0.9623 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.564, allocations: 3.938 kB / 0.9623 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.5641, allocations: 5.406 kB / 0.9623 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5641, allocations: 0 / 0.9623 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5641, allocations: 0.9688 kB / 0.9623 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006711/0.5647, allocations: 325.5 kB / 0.9626 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.5648, allocations: 83.48 kB / 0.9627 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.5648, allocations: 9.422 kB / 0.9627 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.5651, allocations: 44.11 kB / 0.9628 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.5652, allocations: 2.562 kB / 0.9628 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.5652, allocations: 11.64 kB / 0.9628 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.41e-05/0.5652, allocations: 112 kB / 0.9629 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5652, allocations: 0 / 0.9629 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002428/0.5655, allocations: 31.69 kB / 0.9629 GB, free: 1.711 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.0008228/0.5663, allocations: 0.8534 MB / 0.9638 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006343/0.5669, allocations: 198.5 kB / 0.964 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.567, allocations: 0 / 0.964 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.5673, allocations: 96.23 kB / 0.964 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.5675, allocations: 10.59 kB / 0.9641 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.5703, allocations: 1.96 MB / 0.966 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.5705, allocations: 0.7036 MB / 0.9667 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.017e-05/0.5706, allocations: 18.67 kB / 0.9667 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.5707, allocations: 30.28 kB / 0.9667 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.5707, allocations: 1.031 kB / 0.9667 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.012/0.5827, allocations: 2.451 MB / 0.9691 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.5829, allocations: 190.5 kB / 0.9693 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.182, allocations: 4 kB / 0.9693 GB, free: 13.04 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