Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.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.Controls.OBC.CDL.Continuous.Validation.Modulo,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo",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.01106/0.01106, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001865/0.001865, allocations: 201.4 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.425/2.425, allocations: 222.9 MB / 240.4 MB, free: 4.34 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 4.531/4.531, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002559/0.002559, allocations: 65.34 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5276/0.5302, allocations: 140.4 MB / 1.088 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo): time 0.00365/0.534, allocations: 0.6903 MB / 1.088 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.5357, allocations: 0.8666 MB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.986e-05/0.5358, allocations: 0 / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.133e-05/0.5359, allocations: 3.938 kB / 1.089 GB, free: 388 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.5361, allocations: 11.92 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.5364, allocations: 19.92 kB / 1.089 GB, free: 356 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.5365, allocations: 43.84 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.5367, allocations: 12 kB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.5368, allocations: 19.92 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.517e-05/0.5369, allocations: 19.91 kB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.821e-05/0.5369, allocations: 4 kB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.537, allocations: 4 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.853e-05/0.537, allocations: 11.98 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.5371, allocations: 19.86 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.5372, allocations: 40.09 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5372, allocations: 4 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.245e-06/0.5373, allocations: 0 / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.184e-05/0.5373, allocations: 0 / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0008833/0.5382, allocations: 363.3 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.5382, allocations: 11.97 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.971e-05/0.5383, allocations: 34.75 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.5384, allocations: 4.891 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.5386, allocations: 172.3 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.5386, allocations: 4.375 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.5386, allocations: 4.375 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.539, allocations: 74.2 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.539, allocations: 3.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.5391, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.5391, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.5395, allocations: 71.86 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.5401, allocations: 276.8 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.5404, allocations: 54.53 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.5407, allocations: 40.92 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.5407, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.5408, allocations: 30.56 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.5408, allocations: 0 / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001025/0.5418, allocations: 137.5 kB / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.5419, allocations: 55.41 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.5421, allocations: 109.8 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.5421, allocations: 29.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.5422, allocations: 84.14 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.5422, allocations: 11.94 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.5423, allocations: 13.72 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5425, allocations: 314.8 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.5427, allocations: 35.95 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.5429, allocations: 31.97 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.5434, allocations: 72.66 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5434, allocations: 4 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006118/0.544, allocations: 97.58 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.5441, allocations: 8 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.5441, allocations: 0 / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5441, allocations: 0 / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.5444, allocations: 19.97 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.5444, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.5445, allocations: 11.98 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.5446, allocations: 4 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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.0001555/0.5447, allocations: 113.8 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.791e-05/0.5448, allocations: 4 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.5448, allocations: 3.906 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.5449, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5449, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5449, allocations: 11.86 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.5452, allocations: 173.6 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5452, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.5454, allocations: 16.31 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.5454, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.5454, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.5455, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.5455, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006328/0.5461, allocations: 207.3 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.5462, allocations: 77.11 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.5462, allocations: 4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.5464, allocations: 11.98 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.5465, allocations: 11.98 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.5465, allocations: 3.938 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.295e-05/0.5466, allocations: 87.58 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.254e-06/0.5466, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004253/0.547, allocations: 19.88 kB / 1.092 GB, free: 12.96 MB / 0.8575 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 (3): * Single equations (assignments): 3 * 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.001058/0.5481, allocations: 0.728 MB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005287/0.5487, allocations: 71.91 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.5487, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.5489, allocations: 35.91 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.5494, allocations: 11.62 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007576/0.5502, allocations: 151.2 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.5506, allocations: 0.6807 MB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.105e-05/0.5507, allocations: 4 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.932e-05/0.5507, allocations: 15.42 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/0.5507, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04155/0.5923, allocations: 1.687 MB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.83, allocations: 0.5 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo_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_Controls_OBC_CDL_Continuous_Validation_Modulo.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches