Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 214.7 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.206/3.206, allocations: 0.49 GB / 0.7951 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 65.88 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3714, allocations: 176.1 MB / 1.326 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002115/0.3735, allocations: 0.6937 MB / 1.327 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.3747, allocations: 0.832 MB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.911e-05/0.3748, allocations: 0 / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.935e-05/0.3748, allocations: 3.938 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.607e-05/0.3749, allocations: 11.88 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 7.7e-05/0.375, allocations: 11.98 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.3751, allocations: 43.91 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.3752, allocations: 7.984 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.991e-05/0.3753, allocations: 23.92 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.292e-05/0.3753, allocations: 19.92 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.3753, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 1.128e-05/0.3753, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.3754, allocations: 7.984 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.801e-05/0.3754, allocations: 15.94 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.3755, allocations: 47.97 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3755, allocations: 0 / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 4.468e-06/0.3755, allocations: 3.984 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.261e-06/0.3755, allocations: 0 / 1.328 GB, free: 15.71 MB / 1.029 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.0005684/0.3761, allocations: 286.2 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.3762, allocations: 12.03 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.244e-05/0.3762, allocations: 34.75 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.3762, allocations: 0.9375 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.3764, allocations: 122.4 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.3764, allocations: 4.312 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.3764, allocations: 4.375 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3767, allocations: 70.22 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3767, allocations: 7.938 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.3767, allocations: 0 / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3767, allocations: 4 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.377, allocations: 63.86 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.3774, allocations: 228 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.3776, allocations: 58.53 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.3777, allocations: 44.91 kB / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.3778, allocations: 0 / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.3778, allocations: 42.48 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.3778, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005218/0.3783, allocations: 129.5 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.3784, allocations: 51.41 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3785, allocations: 110.1 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.3785, allocations: 25.7 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.158e-05/0.3785, allocations: 92.12 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.3786, allocations: 3.953 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.3786, allocations: 17.72 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3787, allocations: 310.8 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.3789, allocations: 35.95 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.379, allocations: 35.91 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.3793, allocations: 72.66 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3793, allocations: 0 / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003212/0.3796, allocations: 101.6 kB / 1.329 GB, free: 13.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3796, allocations: 10.03 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3796, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3796, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.3798, allocations: 15.97 kB / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3798, allocations: 8.062 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.081e-05/0.3799, allocations: 7.984 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.3799, allocations: 12 kB / 1.33 GB, free: 13.54 MB / 1.029 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.0001014/0.38, allocations: 110.3 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.38, allocations: 11.89 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.38, allocations: 8 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.38, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.38, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.38, allocations: 0 / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/0.3802, allocations: 140.6 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3802, allocations: 0 / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.912e-05/0.3803, allocations: 15.98 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3803, allocations: 7.938 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.3804, allocations: 0 / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3804, allocations: 4 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.3808, allocations: 199.4 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.3808, allocations: 3.953 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.3808, allocations: 4 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.993e-05/0.3809, allocations: 15.98 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.338e-05/0.3809, allocations: 8.359 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.3809, allocations: 3.938 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.714e-05/0.381, allocations: 87.28 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.381, allocations: 0 / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002142/0.3812, allocations: 4 kB / 1.33 GB, free: 12.84 MB / 1.029 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.0007561/0.382, allocations: 0.7319 MB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.3823, allocations: 71.86 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3823, allocations: 0 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3825, allocations: 39.89 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.3828, allocations: 9.719 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.3834, allocations: 147.2 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.243e-05/0.3834, allocations: 67.34 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.86e-05/0.3835, allocations: 0 / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.264e-05/0.3835, allocations: 11.44 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of SimCode: time 9.52e-07/0.3835, allocations: 0 / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.4133, allocations: 2.222 MB / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.67, allocations: 6 kB / 1.333 GB, free: 9.602 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sub.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv. Warning: Get data of variable sub.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv failed! Error: Could not read variable sub.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv. Warning: Get data of variable sub.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.677102674992057]