Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.001384/0.001384, allocations: 113 kB / 18.94 MB, free: 2.957 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.001604/0.001604, allocations: 213.7 kB / 22.25 MB, free: 5.121 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.992 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.248/3.248, allocations: 0.49 GB / 0.7951 GB, free: 33.45 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.DCLinesLinearized,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.00203/0.00203, allocations: 68.38 kB / 1.154 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3443, allocations: 176.1 MB / 1.326 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02904/0.3734, allocations: 23.49 MB / 1.349 GB, free: 10.38 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.02848/0.4019, allocations: 18.19 MB / 1.367 GB, free: 8.137 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.4049, allocations: 170.6 kB / 1.367 GB, free: 7.969 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.01152/0.4164, allocations: 4.353 MB / 1.371 GB, free: 3.609 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.4275, allocations: 3.59 MB / 1.375 GB, free: 8 kB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.003722/0.4312, allocations: 1.328 MB / 1.376 GB, free: 14.68 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.009588/0.4408, allocations: 5.777 MB / 1.381 GB, free: 8.887 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004948/0.4458, allocations: 2.873 MB / 1.384 GB, free: 5.938 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005791/0.4516, allocations: 2.835 MB / 1.387 GB, free: 3.094 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004778/0.4563, allocations: 2.311 MB / 1.389 GB, free: 0.7734 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.4573, allocations: 368 kB / 1.39 GB, free: 424 kB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.4599, allocations: 1.049 MB / 1.391 GB, free: 15.36 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.001467/0.4614, allocations: 1.211 MB / 1.392 GB, free: 14.15 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.003026/0.4644, allocations: 1.99 MB / 1.394 GB, free: 12.15 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.007166/0.4716, allocations: 5.156 MB / 1.399 GB, free: 6.973 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4716, allocations: 0 / 1.399 GB, free: 6.973 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4716, allocations: 0 / 1.399 GB, free: 6.973 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0001281/0.4717, allocations: 0 / 1.399 GB, free: 6.973 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01104/0.4828, allocations: 4.639 MB / 1.403 GB, free: 2.234 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.4828, allocations: 8.031 kB / 1.403 GB, free: 2.227 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006242/0.4834, allocations: 366.3 kB / 1.404 GB, free: 1.859 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01557/0.499, allocations: 3.279 MB / 1.407 GB, free: 14.57 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005716/0.5047, allocations: 2.162 MB / 1.409 GB, free: 12.34 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000587/0.5053, allocations: 466 kB / 1.41 GB, free: 11.82 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.5064, allocations: 236 kB / 1.41 GB, free: 11.59 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.518, allocations: 4.71 MB / 1.414 GB, free: 6.781 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.244e-05/0.5181, allocations: 7.984 kB / 1.414 GB, free: 6.773 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004004/0.5185, allocations: 99.98 kB / 1.414 GB, free: 6.676 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/0.5187, allocations: 172.8 kB / 1.415 GB, free: 6.504 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.5324, allocations: 5.194 MB / 1.42 GB, free: 1.293 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02487/0.5573, allocations: 14.35 MB / 1.434 GB, free: 1.766 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009873/0.5672, allocations: 3.258 MB / 1.437 GB, free: 14.49 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003875/0.571, allocations: 1.373 MB / 1.438 GB, free: 13.12 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.5712, allocations: 21.3 kB / 1.438 GB, free: 13.1 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00469/0.5759, allocations: 1.79 MB / 1.44 GB, free: 11.24 MB / 1.139 GB Notification: Performance of pre-optimization done (n=163): time 4.408e-06/0.5759, allocations: 4 kB / 1.44 GB, free: 11.23 MB / 1.139 GB Notification: Performance of matching and sorting (n=250): time 0.1233/0.6992, allocations: 27.54 MB / 1.467 GB, free: 15.64 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003637/0.6996, allocations: 0.4889 MB / 1.467 GB, free: 15.04 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/0.7036, allocations: 2.308 MB / 1.47 GB, free: 12.72 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0006514/0.7043, allocations: 73.7 kB / 1.47 GB, free: 12.64 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.706, allocations: 1.452 MB / 1.471 GB, free: 11.18 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.001316/0.7073, allocations: 0.8636 MB / 1.472 GB, free: 10.3 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009462/0.7082, allocations: 416.5 kB / 1.472 GB, free: 9.891 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.7084, allocations: 309.1 kB / 1.473 GB, free: 9.586 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005544/0.7139, allocations: 1.925 MB / 1.475 GB, free: 7.656 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005866/0.7198, allocations: 2.237 MB / 1.477 GB, free: 5.336 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.7312, allocations: 4.161 MB / 1.481 GB, free: 1.039 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.051e-05/0.7312, allocations: 0 / 1.481 GB, free: 1.039 MB / 1.17 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01988/0.7511, allocations: 6.482 MB / 1.487 GB, free: 10.47 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.7513, allocations: 154 kB / 1.487 GB, free: 10.29 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/0.7513, allocations: 4 kB / 1.487 GB, free: 10.29 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/0.7615, allocations: 2.925 MB / 1.49 GB, free: 7.352 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.7644, allocations: 487.2 kB / 1.491 GB, free: 6.875 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04173/0.8061, allocations: 18.65 MB / 1.509 GB, free: 4.02 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004168/0.8103, allocations: 323.6 kB / 1.509 GB, free: 3.703 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005155/0.8108, allocations: 91.97 kB / 1.509 GB, free: 3.613 MB / 1.201 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001748/0.8125, allocations: 0.7131 MB / 1.51 GB, free: 2.895 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009591/0.8135, allocations: 345.9 kB / 1.51 GB, free: 2.555 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.8145, allocations: 380.1 kB / 1.511 GB, free: 2.176 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/0.8145, allocations: 24 kB / 1.511 GB, free: 2.152 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-05/0.8146, allocations: 12 kB / 1.511 GB, free: 2.141 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-05/0.8146, allocations: 11.95 kB / 1.511 GB, free: 2.129 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005967/0.8206, allocations: 3.6 MB / 1.514 GB, free: 14.48 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.619e-05/0.8206, allocations: 3.938 kB / 1.514 GB, free: 14.48 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002601/0.8232, allocations: 423.3 kB / 1.515 GB, free: 14.06 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0103/0.8335, allocations: 2.863 MB / 1.517 GB, free: 11.19 MB / 1.217 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005355/0.8341, allocations: 47.97 kB / 1.517 GB, free: 11.14 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04143/0.8755, allocations: 18.43 MB / 1.535 GB, free: 8.465 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.8755, allocations: 7.938 kB / 1.535 GB, free: 8.457 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/0.8939, allocations: 6.112 MB / 1.541 GB, free: 2.316 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/0.8961, allocations: 0.6304 MB / 1.542 GB, free: 1.684 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006611/0.8967, allocations: 51.94 kB / 1.542 GB, free: 1.633 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003197/0.8999, allocations: 315.6 kB / 1.542 GB, free: 1.324 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/0.9012, allocations: 358.5 kB / 1.543 GB, free: 0.9727 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/0.9015, allocations: 71.97 kB / 1.543 GB, free: 0.9023 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.002749/0.9042, allocations: 1.532 MB / 1.544 GB, free: 15.37 MB / 1.248 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9042, allocations: 4 kB / 1.544 GB, free: 15.37 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.003494/0.9077, allocations: 1.043 MB / 1.545 GB, free: 14.32 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01947/0.9272, allocations: 6.745 MB / 1.552 GB, free: 7.535 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02377/0.9509, allocations: 6.321 MB / 1.558 GB, free: 1.121 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.951, allocations: 8.062 kB / 1.558 GB, free: 1.113 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.01745/0.9684, allocations: 3.919 MB / 1.562 GB, free: 13.16 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005223/0.9736, allocations: 1.143 MB / 1.563 GB, free: 12.05 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07932/1.053, allocations: 31.83 MB / 1.594 GB, free: 11.75 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/1.055, allocations: 2.227 MB / 1.596 GB, free: 9.488 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.002282/1.058, allocations: 0.498 MB / 1.597 GB, free: 8.984 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/1.06, allocations: 1.339 MB / 1.598 GB, free: 7.645 MB / 1.295 GB Notification: Performance of SimCode: time 1.213e-06/1.06, allocations: 0 / 1.598 GB, free: 7.645 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8455/1.905, allocations: 105.8 MB / 1.701 GB, free: 201.6 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.72/22.63, allocations: 14.23 kB / 1.701 GB, free: 201.6 MB / 1.295 GB " [Timeout remaining time 277] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 Buildings_12_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable Sloads in file Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv. Warning: Get data of variable Sloads from file Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv failed! Error: Could not read variable E.S[1] in file Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv. Warning: Get data of variable E.S[1] from file Buildings_12_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 29.542690300000686]