Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.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.00169/0.00169, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002369/0.002369, allocations: 207.6 kB / 22.24 MB, free: 5.262 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.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.75 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.837/2.837, allocations: 476 MB / 0.7699 GB, free: 4.754 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance",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.00309/0.00309, allocations: 73.06 kB / 1.117 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3876, allocations: 169.9 MB / 1.283 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005443/0.3931, allocations: 3.077 MB / 1.286 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002514/0.3956, allocations: 1.313 MB / 1.287 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.3957, allocations: 7.938 kB / 1.287 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.3968, allocations: 345 kB / 1.287 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.3972, allocations: 147.2 kB / 1.287 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.3976, allocations: 127.7 kB / 1.287 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000414/0.398, allocations: 306.9 kB / 1.288 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003989/0.3984, allocations: 184.8 kB / 1.288 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.3986, allocations: 127.5 kB / 1.288 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.3989, allocations: 139.5 kB / 1.288 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.764e-05/0.3989, allocations: 20 kB / 1.288 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002801/0.3992, allocations: 151.6 kB / 1.288 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3993, allocations: 83.73 kB / 1.288 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.3994, allocations: 91.59 kB / 1.288 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004566/0.3999, allocations: 334.8 kB / 1.289 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3999, allocations: 3.938 kB / 1.289 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3999, allocations: 0 / 1.289 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.3999, allocations: 0 / 1.289 GB, free: 13.78 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008585/0.4008, allocations: 465.5 kB / 1.289 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4008, allocations: 8.031 kB / 1.289 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/0.4009, allocations: 58.67 kB / 1.289 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005718/0.4014, allocations: 76.72 kB / 1.289 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.4018, allocations: 178.2 kB / 1.29 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.492e-05/0.4018, allocations: 24.73 kB / 1.29 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.4019, allocations: 16.38 kB / 1.29 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/0.4024, allocations: 372.4 kB / 1.29 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4024, allocations: 4 kB / 1.29 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.4024, allocations: 8 kB / 1.29 GB, free: 12.49 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-05/0.4025, allocations: 20.36 kB / 1.29 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.4028, allocations: 192.9 kB / 1.29 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.4043, allocations: 1.043 MB / 1.291 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.4046, allocations: 90.62 kB / 1.291 GB, free: 11.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.366e-05/0.4046, allocations: 32.78 kB / 1.291 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.4046, allocations: 4 kB / 1.291 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.4047, allocations: 34.55 kB / 1.291 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.4047, allocations: 0 / 1.291 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004726/0.4051, allocations: 158.5 kB / 1.291 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.4052, allocations: 51.41 kB / 1.292 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.4054, allocations: 203.5 kB / 1.292 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.4054, allocations: 25.7 kB / 1.292 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.4055, allocations: 164 kB / 1.292 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.4056, allocations: 31.73 kB / 1.292 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.273e-05/0.4056, allocations: 37.62 kB / 1.292 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001761/0.4058, allocations: 326.8 kB / 1.292 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.092e-05/0.4059, allocations: 39.97 kB / 1.292 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.406, allocations: 96.52 kB / 1.292 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.4062, allocations: 144.4 kB / 1.293 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4062, allocations: 0 / 1.293 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003486/0.4066, allocations: 198.2 kB / 1.293 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.4066, allocations: 4 kB / 1.293 GB, free: 9.418 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.4066, allocations: 4 kB / 1.293 GB, free: 9.414 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001635/0.4068, allocations: 20.84 kB / 1.293 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.4069, allocations: 35.86 kB / 1.293 GB, free: 9.355 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.4081, allocations: 1.307 MB / 1.294 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.4082, allocations: 23.88 kB / 1.294 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.4083, allocations: 7.984 kB / 1.294 GB, free: 7.898 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.4084, allocations: 158.7 kB / 1.294 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.4084, allocations: 8.047 kB / 1.294 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.4085, allocations: 21.34 kB / 1.294 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4085, allocations: 4 kB / 1.294 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4085, allocations: 8.156 kB / 1.294 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4085, allocations: 3.984 kB / 1.294 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005802/0.4091, allocations: 410.6 kB / 1.295 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4091, allocations: 0 / 1.295 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.063e-05/0.4091, allocations: 7.984 kB / 1.295 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.273e-05/0.4092, allocations: 24.84 kB / 1.295 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.4092, allocations: 0 / 1.295 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.4103, allocations: 1.323 MB / 1.296 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4103, allocations: 0 / 1.296 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.4106, allocations: 216.2 kB / 1.296 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.4107, allocations: 7.953 kB / 1.296 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.4107, allocations: 8 kB / 1.296 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.4108, allocations: 3.984 kB / 1.296 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.266e-05/0.4108, allocations: 7.938 kB / 1.296 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.4108, allocations: 0 / 1.296 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001495/0.411, allocations: 156.9 kB / 1.296 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.411, allocations: 0 / 1.296 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003287/0.4113, allocations: 55.84 kB / 1.296 GB, free: 5.297 MB / 0.9981 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006025/0.4119, allocations: 0.7483 MB / 1.297 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004013/0.4123, allocations: 199.1 kB / 1.297 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4123, allocations: 0 / 1.297 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.4125, allocations: 150.7 kB / 1.298 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.4129, allocations: 38.16 kB / 1.298 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.4153, allocations: 2.052 MB / 1.3 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.4155, allocations: 139.8 kB / 1.3 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001018/0.4156, allocations: 29.45 kB / 1.3 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.304e-05/0.4157, allocations: 51.42 kB / 1.3 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/0.4157, allocations: 0 / 1.3 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.455, allocations: 4.375 MB / 1.304 GB, free: 13.49 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.42, allocations: 4.062 kB / 1.304 GB, free: 13.48 MB / 1.014 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen.I in file Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv. Warning: Get data of variable sen.I from file Buildings_11_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.972763242200017]