Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001789/0.001789, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002173/0.002173, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.534/1.534, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.448/3.448, allocations: 0.505 GB / 0.8101 GB, free: 21.93 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_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.002041/0.002041, allocations: 70.5 kB / 1.177 GB, free: 16.95 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3836, allocations: 180.2 MB / 1.353 GB, free: 8.32 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.002309/0.3859, allocations: 0.7139 MB / 1.354 GB, free: 7.609 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.3871, allocations: 0.832 MB / 1.354 GB, free: 6.766 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.088e-05/0.3871, allocations: 3.938 kB / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.734e-05/0.3871, allocations: 0 / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.951e-05/0.3872, allocations: 11.88 kB / 1.354 GB, free: 6.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 7.359e-05/0.3873, allocations: 11.98 kB / 1.354 GB, free: 6.738 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.3874, allocations: 47.84 kB / 1.354 GB, free: 6.691 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.3875, allocations: 4 kB / 1.354 GB, free: 6.688 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.292e-05/0.3876, allocations: 19.92 kB / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.3876, allocations: 23.92 kB / 1.355 GB, free: 6.645 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.3876, allocations: 4 kB / 1.355 GB, free: 6.641 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.3876, allocations: 4 kB / 1.355 GB, free: 6.637 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.3877, allocations: 11.98 kB / 1.355 GB, free: 6.625 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.3877, allocations: 23.86 kB / 1.355 GB, free: 6.602 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.3878, allocations: 40.09 kB / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3878, allocations: 0 / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3878, allocations: 0 / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.3878, allocations: 0 / 1.355 GB, free: 6.562 MB / 1.045 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.0005939/0.3884, allocations: 294.2 kB / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3885, allocations: 11.97 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.333e-05/0.3885, allocations: 34.75 kB / 1.355 GB, free: 6.188 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.863e-05/0.3886, allocations: 0.9375 kB / 1.355 GB, free: 6.188 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.3887, allocations: 114.4 kB / 1.355 GB, free: 6.051 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.3887, allocations: 4.375 kB / 1.355 GB, free: 6.047 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.3887, allocations: 4.375 kB / 1.355 GB, free: 6.043 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.389, allocations: 70.2 kB / 1.355 GB, free: 5.969 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.389, allocations: 3.938 kB / 1.355 GB, free: 5.965 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.389, allocations: 4 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.3891, allocations: 7.938 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.3894, allocations: 67.86 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.3898, allocations: 240 kB / 1.355 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.39, allocations: 54.53 kB / 1.355 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3901, allocations: 40.91 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.3901, allocations: 0 / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.3902, allocations: 42.56 kB / 1.356 GB, free: 5.453 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3902, allocations: 0 / 1.356 GB, free: 5.453 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.000546/0.3907, allocations: 125.7 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.3908, allocations: 51.41 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.3909, allocations: 105.8 kB / 1.356 GB, free: 5.148 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.3909, allocations: 29.7 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.391, allocations: 96.06 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.391, allocations: 11.89 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.391, allocations: 17.72 kB / 1.356 GB, free: 4.98 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3912, allocations: 310.8 kB / 1.356 GB, free: 4.668 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.3913, allocations: 35.95 kB / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.3915, allocations: 36 kB / 1.356 GB, free: 4.598 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.3917, allocations: 76.66 kB / 1.356 GB, free: 4.52 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3917, allocations: 0 / 1.356 GB, free: 4.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003167/0.3921, allocations: 97.62 kB / 1.357 GB, free: 4.418 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.3921, allocations: 4 kB / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3921, allocations: 0 / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3921, allocations: 0 / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.3922, allocations: 19.97 kB / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.3922, allocations: 0 / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.512e-05/0.3923, allocations: 11.98 kB / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.3923, allocations: 0 / 1.357 GB, free: 4.383 MB / 1.045 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 9.548e-05/0.3924, allocations: 121.7 kB / 1.357 GB, free: 4.254 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.496e-05/0.3924, allocations: 7.953 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.3925, allocations: 8 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3925, allocations: 3.984 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.3925, allocations: 0 / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3925, allocations: 0 / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.3927, allocations: 144.6 kB / 1.357 GB, free: 4.047 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3927, allocations: 7.938 kB / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.992e-05/0.3928, allocations: 11.98 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3928, allocations: 4 kB / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-06/0.3928, allocations: 0 / 1.357 GB, free: 4.023 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3928, allocations: 4 kB / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3928, allocations: 0 / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.3932, allocations: 191.4 kB / 1.357 GB, free: 3.816 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.328e-05/0.3932, allocations: 15.89 kB / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3932, allocations: 0 / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.3933, allocations: 15.98 kB / 1.357 GB, free: 3.785 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.3933, allocations: 7.984 kB / 1.357 GB, free: 3.777 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.3933, allocations: 0 / 1.357 GB, free: 3.777 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.741e-05/0.3934, allocations: 91.56 kB / 1.357 GB, free: 3.688 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3934, allocations: 3.938 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002198/0.3936, allocations: 8 kB / 1.357 GB, free: 3.676 MB / 1.045 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.0008175/0.3944, allocations: 0.7241 MB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003295/0.3948, allocations: 67.92 kB / 1.358 GB, free: 2.859 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3948, allocations: 0 / 1.358 GB, free: 2.859 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.3949, allocations: 40.22 kB / 1.358 GB, free: 2.82 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3953, allocations: 8 kB / 1.358 GB, free: 2.812 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.3958, allocations: 159.1 kB / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.3962, allocations: 0.6807 MB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.243e-05/0.3962, allocations: 4.094 kB / 1.359 GB, free: 1.906 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.3963, allocations: 19.41 kB / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of SimCode: time 6.82e-07/0.3963, allocations: 0 / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.4276, allocations: 1.725 MB / 1.361 GB, free: 304 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.61, allocations: 7.797 kB / 1.361 GB, free: 300 kB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.8503298338037]