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.001193/0.001193, 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.001227/0.001227, allocations: 194.5 kB / 16.53 MB, free: 6.391 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.31/2.31, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6125/0.614, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002992/0.617, allocations: 1.77 MB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001052/0.6181, allocations: 0.6516 MB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.302e-05/0.6182, allocations: 1.625 kB / 0.9521 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.484e-05/0.6182, allocations: 7.875 kB / 0.9521 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.313e-05/0.6183, allocations: 25.28 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.6189, allocations: 163.4 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.619, allocations: 121.8 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.6192, allocations: 51.67 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.6193, allocations: 60.33 kB / 0.9525 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.612e-05/0.6194, allocations: 48.83 kB / 0.9525 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.6194, allocations: 13.88 kB / 0.9526 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.6195, allocations: 44.81 kB / 0.9526 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.35e-05/0.6195, allocations: 37.58 kB / 0.9526 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.773e-05/0.6196, allocations: 48.42 kB / 0.9527 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.6198, allocations: 149.8 kB / 0.9528 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6198, allocations: 5.312 kB / 0.9528 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.6198, allocations: 0 / 0.9528 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.6198, allocations: 0 / 0.9528 GB, free: 6.766 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.0004917/0.6203, allocations: 443.3 kB / 0.9533 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.6203, allocations: 8.656 kB / 0.9533 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.6204, allocations: 38.72 kB / 0.9533 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008457/0.6212, allocations: 115.1 kB / 0.9534 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.249e-05/0.6213, allocations: 182.6 kB / 0.9536 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.6214, allocations: 70.73 kB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.6214, allocations: 6.125 kB / 0.9537 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.6219, allocations: 170.8 kB / 0.9538 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.622, allocations: 0 / 0.9538 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.622, allocations: 1.375 kB / 0.9538 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.622, allocations: 2.25 kB / 0.9538 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006234/0.6226, allocations: 165.6 kB / 0.954 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009877/0.6236, allocations: 485.9 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.6247, allocations: 220.3 kB / 0.9547 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.625, allocations: 78.31 kB / 0.9547 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.625, allocations: 6.375 kB / 0.9547 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.625, allocations: 39.69 kB / 0.9548 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.625, allocations: 0 / 0.9548 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001021/0.6261, allocations: 263.8 kB / 0.955 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.6261, allocations: 52.81 kB / 0.9551 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.445e-05/0.6262, allocations: 135.1 kB / 0.9552 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.6262, allocations: 25.7 kB / 0.9552 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.858e-05/0.6263, allocations: 114.9 kB / 0.9553 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.6263, allocations: 17.66 kB / 0.9554 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.6263, allocations: 32.95 kB / 0.9554 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.6264, allocations: 320.1 kB / 0.9557 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.6267, allocations: 73.95 kB / 0.9558 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.627, allocations: 94.22 kB / 0.9558 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000579/0.6276, allocations: 163.6 kB / 0.956 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6276, allocations: 4 kB / 0.956 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006711/0.6283, allocations: 199.4 kB / 0.9562 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.6283, allocations: 8.266 kB / 0.9562 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.6283, allocations: 5.25 kB / 0.9562 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.6284, allocations: 1.031 kB / 0.9562 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.6286, allocations: 42.14 kB / 0.9563 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.6287, allocations: 1.156 kB / 0.9563 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.6289, allocations: 25.38 kB / 0.9563 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.6289, allocations: 6.547 kB / 0.9563 GB, free: 3.902 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.138e-05/0.629, allocations: 117.7 kB / 0.9564 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.629, allocations: 8.594 kB / 0.9564 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007226/0.6298, allocations: 215.3 kB / 0.9566 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.6298, allocations: 1.812 kB / 0.9566 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.6298, allocations: 0 / 0.9566 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.6298, allocations: 4 kB / 0.9566 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.63, allocations: 238 kB / 0.9568 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.63, allocations: 0 / 0.9568 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.6303, allocations: 39.86 kB / 0.9569 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.6303, allocations: 1.375 kB / 0.9569 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.6303, allocations: 3.938 kB / 0.9569 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.6303, allocations: 1.375 kB / 0.9569 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.6303, allocations: 0 / 0.9569 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000668/0.631, allocations: 287.3 kB / 0.9572 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.631, allocations: 87.7 kB / 0.9572 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.631, allocations: 7.922 kB / 0.9573 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.6313, allocations: 36.45 kB / 0.9573 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.6314, allocations: 2.75 kB / 0.9573 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.6314, allocations: 8.109 kB / 0.9573 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.695e-05/0.6315, allocations: 104.7 kB / 0.9574 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6315, allocations: 3.938 kB / 0.9574 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002581/0.6317, allocations: 23.81 kB / 0.9574 GB, free: 2.918 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.0008455/0.6326, allocations: 0.8186 MB / 0.9582 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006806/0.6333, allocations: 170.1 kB / 0.9584 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.6333, allocations: 0 / 0.9584 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003215/0.6336, allocations: 81.83 kB / 0.9585 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.634, allocations: 12.91 kB / 0.9585 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.6368, allocations: 1.816 MB / 0.9602 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.637, allocations: 0.6993 MB / 0.9609 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.662e-05/0.6371, allocations: 22.92 kB / 0.961 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.902e-05/0.6372, allocations: 30.83 kB / 0.961 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of SimCode: time 3.3e-07/0.6372, allocations: 4 kB / 0.961 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.6572, allocations: 2.706 MB / 0.9636 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/8.213, allocations: 9.719 kB / 0.9636 GB, free: 14.3 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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