Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.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.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",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.01689/0.01689, allocations: 96.27 kB / 15.73 MB, free: 6.039 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.003325/0.003325, allocations: 202.6 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.618/2.618, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.703/4.703, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002196/0.002197, allocations: 65.47 kB / 0.9504 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5368/0.5391, allocations: 140.4 MB / 1.088 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.004066/0.5432, allocations: 0.6942 MB / 1.088 GB, free: 1.289 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00198/0.5453, allocations: 0.8043 MB / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.208e-05/0.5454, allocations: 0 / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.46e-05/0.5455, allocations: 7.938 kB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.5457, allocations: 7.938 kB / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001011/0.5458, allocations: 7.984 kB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.546, allocations: 47.83 kB / 1.089 GB, free: 412 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.5462, allocations: 16 kB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.5463, allocations: 15.98 kB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.259e-05/0.5464, allocations: 19.86 kB / 1.089 GB, free: 360 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.5465, allocations: 7.938 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.5465, allocations: 4 kB / 1.089 GB, free: 348 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.031e-05/0.5466, allocations: 11.98 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.995e-05/0.5466, allocations: 19.86 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.5468, allocations: 48.02 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.5469, allocations: 4 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of FrontEnd: time 7.114e-06/0.5469, allocations: 4 kB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.5469, allocations: 0 / 1.089 GB, free: 260 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.001002/0.5479, allocations: 355.4 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.548, allocations: 8.031 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.57e-05/0.5481, allocations: 30.75 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.5482, allocations: 8.891 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.5484, allocations: 172.3 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.5485, allocations: 8.375 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.5485, allocations: 384 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.5489, allocations: 66.22 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.549, allocations: 7.875 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.549, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.549, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005521/0.5496, allocations: 71.92 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.5503, allocations: 268.8 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.5506, allocations: 54.53 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.551, allocations: 44.92 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.551, allocations: 3.938 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.042e-05/0.5511, allocations: 30.56 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 2.955e-06/0.5511, allocations: 0 / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0009865/0.5521, allocations: 137.5 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.5522, allocations: 55.41 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.5523, allocations: 105.8 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.5524, allocations: 25.7 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.253e-05/0.5525, allocations: 88.14 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.5525, allocations: 11.94 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.115e-05/0.5526, allocations: 13.72 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002218/0.5529, allocations: 318.8 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.5531, allocations: 35.89 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.5534, allocations: 31.97 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.5539, allocations: 68.72 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.554, allocations: 4 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006548/0.5546, allocations: 101.6 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.5547, allocations: 8 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.5547, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.5547, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.555, allocations: 15.92 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.555, allocations: 8 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.5552, allocations: 11.97 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.5552, allocations: 3.938 kB / 1.091 GB, free: 13.88 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.0001496/0.5554, allocations: 113.8 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.239e-05/0.5555, allocations: 4 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.413e-05/0.5555, allocations: 7.906 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.5555, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.5555, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5556, allocations: 4 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003526/0.5559, allocations: 173.6 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.5559, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.5561, allocations: 15.98 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.5562, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.5562, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.5562, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5562, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/0.5569, allocations: 203.4 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.609e-05/0.557, allocations: 85.05 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.557, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.5572, allocations: 11.98 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.5573, allocations: 7.984 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.5573, allocations: 4 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002293/0.5576, allocations: 87.59 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.31e-07/0.5576, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004157/0.558, allocations: 7.938 kB / 1.092 GB, free: 13.07 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.001414/0.5595, allocations: 0.7361 MB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006411/0.5601, allocations: 75.84 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5601, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.5605, allocations: 44.03 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005802/0.5611, allocations: 4 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008285/0.5619, allocations: 155.2 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.5624, allocations: 0.6768 MB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.732e-05/0.5625, allocations: 4 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.499e-05/0.5626, allocations: 11.44 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of SimCode: time 9.02e-07/0.5626, allocations: 4 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.6008, allocations: 1.63 MB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.38, allocations: 15.55 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_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_Subtract.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches