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.001355/0.001355, allocations: 108 kB / 15.61 MB, free: 152 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.001424/0.001424, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.429/2.429, allocations: 390.3 MB / 0.6647 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6213/0.6227, allocations: 140.4 MB / 0.9497 GB, free: 9.422 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.001699/0.6244, allocations: 0.6911 MB / 0.9504 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006094/0.6251, allocations: 0.8008 MB / 0.9512 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.343e-05/0.6251, allocations: 1.094 kB / 0.9512 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.504e-05/0.6251, allocations: 7.922 kB / 0.9512 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.017e-05/0.6252, allocations: 4.594 kB / 0.9512 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.892e-05/0.6253, allocations: 13.33 kB / 0.9512 GB, free: 8.211 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.093e-05/0.6253, allocations: 37.42 kB / 0.9513 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.306e-05/0.6254, allocations: 13.58 kB / 0.9513 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.254e-05/0.6255, allocations: 21.94 kB / 0.9513 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.636e-05/0.6255, allocations: 28.38 kB / 0.9513 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.6255, allocations: 3.875 kB / 0.9513 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.917e-06/0.6256, allocations: 4.062 kB / 0.9513 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.6256, allocations: 9.438 kB / 0.9513 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.6256, allocations: 18.94 kB / 0.9514 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.103e-05/0.6257, allocations: 35.5 kB / 0.9514 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.6257, allocations: 0 / 0.9514 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.6257, allocations: 0 / 0.9514 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.6257, allocations: 0 / 0.9514 GB, free: 8.094 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003893/0.6261, allocations: 378 kB / 0.9518 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.6261, allocations: 9.656 kB / 0.9518 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.504e-05/0.6262, allocations: 31.62 kB / 0.9518 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.062e-05/0.6262, allocations: 3.688 kB / 0.9518 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.477e-05/0.6263, allocations: 166.7 kB / 0.952 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.6263, allocations: 5.625 kB / 0.952 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.6263, allocations: 1.719 kB / 0.952 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.6265, allocations: 75.42 kB / 0.952 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.6265, allocations: 11.81 kB / 0.952 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.6265, allocations: 3.984 kB / 0.9521 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.6265, allocations: 1.281 kB / 0.9521 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.6268, allocations: 63.77 kB / 0.9521 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000245/0.6271, allocations: 263.4 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.6273, allocations: 56.38 kB / 0.9524 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.6274, allocations: 53.44 kB / 0.9525 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.6274, allocations: 1.406 kB / 0.9525 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.247e-05/0.6274, allocations: 34.56 kB / 0.9525 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.6274, allocations: 0 / 0.9525 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004896/0.6279, allocations: 125.6 kB / 0.9526 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/0.628, allocations: 52.72 kB / 0.9527 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.228e-05/0.628, allocations: 116 kB / 0.9528 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.103e-06/0.628, allocations: 25.7 kB / 0.9528 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/0.6281, allocations: 89.56 kB / 0.9529 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.628e-05/0.6281, allocations: 13.08 kB / 0.9529 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.6281, allocations: 17.31 kB / 0.9529 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.724e-05/0.6282, allocations: 316 kB / 0.9532 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.6283, allocations: 36.94 kB / 0.9533 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.6285, allocations: 29.72 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.6287, allocations: 70.81 kB / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.6287, allocations: 0 / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002903/0.629, allocations: 101.4 kB / 0.9535 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.629, allocations: 5.5 kB / 0.9535 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.6291, allocations: 0 / 0.9535 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.6291, allocations: 5.375 kB / 0.9535 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.6292, allocations: 17.91 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.6292, allocations: 0 / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.387e-05/0.6293, allocations: 19.8 kB / 0.9535 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.6293, allocations: 4 kB / 0.9535 GB, free: 6.059 MB / 0.7169 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 4.389e-05/0.6293, allocations: 112.6 kB / 0.9536 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.6294, allocations: 1.375 kB / 0.9536 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.949e-05/0.6294, allocations: 13.05 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.6294, allocations: 1.5 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6294, allocations: 0 / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6294, allocations: 0 / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.6295, allocations: 172.8 kB / 0.9538 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.6295, allocations: 1.438 kB / 0.9538 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.867e-05/0.6296, allocations: 18.45 kB / 0.9538 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.6296, allocations: 336 / 0.9538 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.6296, allocations: 0 / 0.9538 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.6297, allocations: 5.734 kB / 0.9538 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.6297, allocations: 0 / 0.9538 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.63, allocations: 207.2 kB / 0.954 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.617e-05/0.63, allocations: 78.45 kB / 0.9541 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.63, allocations: 1.125 kB / 0.9541 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.6301, allocations: 10.58 kB / 0.9541 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.6302, allocations: 6.516 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.6302, allocations: 1.125 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.521e-05/0.6302, allocations: 93.41 kB / 0.9542 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6302, allocations: 0 / 0.9542 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002095/0.6304, allocations: 10.16 kB / 0.9542 GB, free: 5.332 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 (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.0004883/0.6309, allocations: 0.7249 MB / 0.9549 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.6312, allocations: 78.47 kB / 0.955 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.6312, allocations: 0 / 0.955 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.6314, allocations: 36.72 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.6317, allocations: 9.406 kB / 0.955 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003671/0.6321, allocations: 156.7 kB / 0.9552 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.86e-05/0.6322, allocations: 0.683 MB / 0.9558 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.73e-05/0.6322, allocations: 1.188 kB / 0.9559 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.6322, allocations: 17.61 kB / 0.9559 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6322, allocations: 3.938 kB / 0.9559 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.648, allocations: 1.585 MB / 0.9574 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/8.215, allocations: 13.19 kB / 0.9574 GB, free: 2.82 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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