Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001656/0.001656, allocations: 114.5 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.002044/0.002044, allocations: 217.1 kB / 22.25 MB, free: 5.082 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 8.02 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.131/3.131, allocations: 0.49 GB / 0.7951 GB, free: 33.39 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.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_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.002018/0.002018, allocations: 72.61 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3906, allocations: 176.1 MB / 1.326 GB, free: 1.949 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005707/0.3963, allocations: 3.197 MB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002659/0.399, allocations: 1.41 MB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.3992, allocations: 4 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.4003, allocations: 358.6 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004772/0.4008, allocations: 155.2 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.4013, allocations: 135.6 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.4017, allocations: 303 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.4022, allocations: 177.1 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.4024, allocations: 131.5 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003842/0.4028, allocations: 151.5 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.891e-05/0.4028, allocations: 20 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003457/0.4032, allocations: 171.6 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.893e-05/0.4033, allocations: 79.8 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.4034, allocations: 111.5 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000554/0.404, allocations: 334.8 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.404, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.404, allocations: 4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.404, allocations: 0 / 1.332 GB, free: 11.23 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009351/0.4049, allocations: 461.4 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.405, allocations: 8.031 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.323e-05/0.4051, allocations: 58.73 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006013/0.4057, allocations: 84.72 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003585/0.406, allocations: 187.6 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.406, allocations: 16.75 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.4061, allocations: 16.38 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.4067, allocations: 295.3 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.4067, allocations: 4 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.4068, allocations: 11.98 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.4068, allocations: 16.36 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.4071, allocations: 196.9 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.4091, allocations: 1.429 MB / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.4093, allocations: 90.61 kB / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.556e-05/0.4094, allocations: 28.84 kB / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-06/0.4094, allocations: 0 / 1.335 GB, free: 8.094 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.4094, allocations: 38.56 kB / 1.335 GB, free: 8.047 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.4094, allocations: 4 kB / 1.335 GB, free: 8.043 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0005013/0.4099, allocations: 146.5 kB / 1.335 GB, free: 7.891 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.41, allocations: 55.41 kB / 1.335 GB, free: 7.824 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.4102, allocations: 198.4 kB / 1.336 GB, free: 7.621 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.4102, allocations: 25.7 kB / 1.336 GB, free: 7.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.4104, allocations: 167.9 kB / 1.336 GB, free: 7.422 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.4104, allocations: 23.84 kB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/0.4104, allocations: 41.67 kB / 1.336 GB, free: 7.352 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4106, allocations: 334.7 kB / 1.336 GB, free: 7.016 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.081e-05/0.4107, allocations: 39.89 kB / 1.336 GB, free: 6.977 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.4108, allocations: 102.4 kB / 1.336 GB, free: 6.848 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.411, allocations: 144.5 kB / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.411, allocations: 4 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003421/0.4114, allocations: 186.2 kB / 1.337 GB, free: 6.48 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.4114, allocations: 7.984 kB / 1.337 GB, free: 6.473 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.4114, allocations: 4.281 kB / 1.337 GB, free: 6.469 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.4116, allocations: 28.84 kB / 1.337 GB, free: 6.438 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.4117, allocations: 27.94 kB / 1.337 GB, free: 6.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.413, allocations: 1.323 MB / 1.338 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.4132, allocations: 15.89 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.4132, allocations: 11.98 kB / 1.338 GB, free: 4.941 MB / 1.029 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.0001754/0.4134, allocations: 149.8 kB / 1.338 GB, free: 4.785 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/0.4134, allocations: 15.91 kB / 1.338 GB, free: 4.77 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.4134, allocations: 21.39 kB / 1.338 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4134, allocations: 0 / 1.338 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.4134, allocations: 0 / 1.338 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.4134, allocations: 64 / 1.338 GB, free: 4.75 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.414, allocations: 426.2 kB / 1.339 GB, free: 4.281 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.414, allocations: 96 / 1.339 GB, free: 4.281 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.4141, allocations: 15.92 kB / 1.339 GB, free: 4.266 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-05/0.4142, allocations: 24.84 kB / 1.339 GB, free: 4.238 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.4142, allocations: 0 / 1.339 GB, free: 4.238 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.4154, allocations: 1.316 MB / 1.34 GB, free: 2.809 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4154, allocations: 0 / 1.34 GB, free: 2.809 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.4157, allocations: 212.2 kB / 1.34 GB, free: 2.582 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.4158, allocations: 19.91 kB / 1.34 GB, free: 2.562 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.4158, allocations: 8.078 kB / 1.34 GB, free: 2.555 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.4159, allocations: 7.984 kB / 1.34 GB, free: 2.547 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.4159, allocations: 7.984 kB / 1.34 GB, free: 2.539 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-06/0.4159, allocations: 4 kB / 1.34 GB, free: 2.535 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001633/0.4161, allocations: 147 kB / 1.34 GB, free: 2.391 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4161, allocations: 3.938 kB / 1.34 GB, free: 2.387 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003487/0.4164, allocations: 55.89 kB / 1.34 GB, free: 2.332 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 (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.0005865/0.417, allocations: 0.7483 MB / 1.341 GB, free: 1.551 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000419/0.4174, allocations: 207 kB / 1.341 GB, free: 1.336 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4174, allocations: 0 / 1.341 GB, free: 1.336 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.4176, allocations: 146.7 kB / 1.341 GB, free: 1.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.418, allocations: 39.22 kB / 1.342 GB, free: 1.145 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.4207, allocations: 2.039 MB / 1.344 GB, free: 14.97 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.4211, allocations: 0.7556 MB / 1.344 GB, free: 14.19 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.88e-05/0.4212, allocations: 25.86 kB / 1.344 GB, free: 14.16 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.057e-05/0.4213, allocations: 51.36 kB / 1.344 GB, free: 14.11 MB / 1.045 GB Notification: Performance of SimCode: time 8.22e-07/0.4213, allocations: 4 kB / 1.344 GB, free: 14.11 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.4564, allocations: 3.879 MB / 1.348 GB, free: 10.38 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.78, allocations: 12.53 kB / 1.348 GB, free: 10.38 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv. Warning: Get data of variable sen.I from file Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.677987965000284]