Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001794/0.001794, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002245/0.002245, allocations: 216.2 kB / 22.25 MB, free: 5.078 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.525/1.525, allocations: 230.6 MB / 256 MB, free: 8.016 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.307/3.307, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",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.002805/0.002805, allocations: 71.27 kB / 1.177 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3752, allocations: 180.2 MB / 1.353 GB, free: 8.441 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00741/0.3826, allocations: 4.533 MB / 1.357 GB, free: 3.891 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003821/0.3865, allocations: 1.959 MB / 1.359 GB, free: 1.922 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004268/0.3869, allocations: 11.94 kB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.3889, allocations: 0.6274 MB / 1.36 GB, free: 1.281 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0007561/0.3896, allocations: 262.6 kB / 1.36 GB, free: 1.023 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007508/0.3904, allocations: 259.1 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0009422/0.3913, allocations: 0.615 MB / 1.361 GB, free: 160 kB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000703/0.392, allocations: 351.2 kB / 1.361 GB, free: 15.81 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000473/0.3925, allocations: 255.1 kB / 1.361 GB, free: 15.56 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006237/0.3931, allocations: 282.9 kB / 1.362 GB, free: 15.29 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.403e-05/0.3932, allocations: 36 kB / 1.362 GB, free: 15.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000536/0.3937, allocations: 263.4 kB / 1.362 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.3939, allocations: 155.6 kB / 1.362 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.3942, allocations: 222.9 kB / 1.362 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0009324/0.3951, allocations: 0.611 MB / 1.363 GB, free: 14.01 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3951, allocations: 0 / 1.363 GB, free: 14.01 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3951, allocations: 0 / 1.363 GB, free: 14.01 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.181e-05/0.3952, allocations: 3.984 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001488/0.3967, allocations: 0.6647 MB / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.3967, allocations: 12.03 kB / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.3968, allocations: 74.72 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.3978, allocations: 152.5 kB / 1.364 GB, free: 13.06 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005444/0.3984, allocations: 268.9 kB / 1.364 GB, free: 12.78 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.3984, allocations: 33.36 kB / 1.364 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.635e-05/0.3985, allocations: 28.38 kB / 1.364 GB, free: 12.72 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008777/0.3994, allocations: 0.5355 MB / 1.365 GB, free: 12.15 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3994, allocations: 7.938 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.3994, allocations: 20 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.447e-05/0.3995, allocations: 24.64 kB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006745/0.4001, allocations: 386.3 kB / 1.365 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003043/0.4032, allocations: 2.376 MB / 1.367 GB, free: 9.133 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/0.4037, allocations: 238.5 kB / 1.368 GB, free: 8.891 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.4039, allocations: 97.16 kB / 1.368 GB, free: 8.793 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.4039, allocations: 3.953 kB / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/0.404, allocations: 42.5 kB / 1.368 GB, free: 8.738 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.664e-06/0.404, allocations: 4 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002258/0.4062, allocations: 0.901 MB / 1.369 GB, free: 7.793 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.4063, allocations: 51.41 kB / 1.369 GB, free: 7.73 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.4066, allocations: 308.4 kB / 1.369 GB, free: 7.418 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.4067, allocations: 33.7 kB / 1.369 GB, free: 7.379 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.4069, allocations: 236.1 kB / 1.369 GB, free: 7.145 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.023e-05/0.4069, allocations: 83.33 kB / 1.369 GB, free: 7.062 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.407, allocations: 61.98 kB / 1.369 GB, free: 6.992 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.4072, allocations: 334.8 kB / 1.37 GB, free: 6.656 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.4074, allocations: 108.6 kB / 1.37 GB, free: 6.551 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.4077, allocations: 187.8 kB / 1.37 GB, free: 6.328 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.4081, allocations: 316.6 kB / 1.37 GB, free: 5.984 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.4081, allocations: 8 kB / 1.37 GB, free: 5.977 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008442/0.409, allocations: 434.2 kB / 1.371 GB, free: 5.539 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.409, allocations: 8.062 kB / 1.371 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.409, allocations: 4 kB / 1.371 GB, free: 5.527 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003882/0.4094, allocations: 98.48 kB / 1.371 GB, free: 5.422 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.4097, allocations: 67.84 kB / 1.371 GB, free: 5.355 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.4135, allocations: 4.093 MB / 1.375 GB, free: 0.918 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.4137, allocations: 12 kB / 1.375 GB, free: 0.9062 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.4138, allocations: 8 kB / 1.375 GB, free: 0.8984 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002384/0.414, allocations: 178.6 kB / 1.375 GB, free: 0.7148 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.872e-05/0.4141, allocations: 39.73 kB / 1.375 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.725e-05/0.4142, allocations: 42.41 kB / 1.375 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4142, allocations: 8.062 kB / 1.375 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4142, allocations: 0 / 1.375 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4142, allocations: 0 / 1.375 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005152/0.4147, allocations: 368.5 kB / 1.376 GB, free: 224 kB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4147, allocations: 7.938 kB / 1.376 GB, free: 216 kB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002002/0.4149, allocations: 31.92 kB / 1.376 GB, free: 184 kB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003209/0.4152, allocations: 90.5 kB / 1.376 GB, free: 84 kB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.4152, allocations: 11.98 kB / 1.376 GB, free: 72 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003571/0.4188, allocations: 4.085 MB / 1.38 GB, free: 11.64 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4188, allocations: 7.875 kB / 1.38 GB, free: 11.63 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009412/0.4198, allocations: 0.5552 MB / 1.38 GB, free: 11.05 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.4199, allocations: 51.81 kB / 1.38 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.328e-05/0.42, allocations: 0 / 1.38 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.4202, allocations: 15.98 kB / 1.38 GB, free: 10.99 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.4202, allocations: 15.97 kB / 1.38 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.4202, allocations: 8 kB / 1.38 GB, free: 10.96 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002409/0.4205, allocations: 219.1 kB / 1.381 GB, free: 10.75 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.4205, allocations: 3.938 kB / 1.381 GB, free: 10.75 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000491/0.421, allocations: 96 kB / 1.381 GB, free: 10.66 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.4222, allocations: 1.086 MB / 1.382 GB, free: 9.535 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009736/0.4231, allocations: 0.6045 MB / 1.382 GB, free: 8.895 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4232, allocations: 0 / 1.382 GB, free: 8.895 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005863/0.4237, allocations: 459.9 kB / 1.383 GB, free: 8.406 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005103/0.4242, allocations: 78.36 kB / 1.383 GB, free: 8.332 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.429, allocations: 3.377 MB / 1.386 GB, free: 4.781 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.4295, allocations: 0.8311 MB / 1.387 GB, free: 3.922 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002031/0.4297, allocations: 62.92 kB / 1.387 GB, free: 3.863 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.4299, allocations: 111.4 kB / 1.387 GB, free: 3.754 MB / 1.076 GB Notification: Performance of SimCode: time 7.21e-07/0.4299, allocations: 0 / 1.387 GB, free: 3.754 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04737/0.4773, allocations: 8.114 MB / 1.395 GB, free: 11.82 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.75, allocations: 4.281 kB / 1.395 GB, free: 11.82 MB / 1.092 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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: 19.710327096050605]