Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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.001593/0.001593, 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.001774/0.001774, allocations: 214.2 kB / 22.25 MB, free: 5.258 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.801 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.277/3.277, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",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.002091/0.002091, allocations: 65.08 kB / 1.186 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3092, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04692/0.3561, allocations: 36.43 MB / 1.399 GB, free: 9.52 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.02031/0.3764, allocations: 11.12 MB / 1.41 GB, free: 14.37 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.3796, allocations: 206.4 kB / 1.41 GB, free: 14.17 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.01208/0.3917, allocations: 4.373 MB / 1.414 GB, free: 9.785 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.006578/0.3983, allocations: 2.34 MB / 1.417 GB, free: 7.434 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.005777/0.4041, allocations: 2.179 MB / 1.419 GB, free: 5.258 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.01178/0.4158, allocations: 9.281 MB / 1.428 GB, free: 11.95 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01133/0.4272, allocations: 6.322 MB / 1.434 GB, free: 5.504 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00677/0.4339, allocations: 4.137 MB / 1.438 GB, free: 1.355 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008091/0.442, allocations: 4.454 MB / 1.442 GB, free: 12.88 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.002253/0.4443, allocations: 0.8242 MB / 1.443 GB, free: 12.06 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004636/0.4489, allocations: 1.494 MB / 1.445 GB, free: 10.57 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.005133/0.454, allocations: 3.238 MB / 1.448 GB, free: 7.32 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.005194/0.4592, allocations: 2.969 MB / 1.451 GB, free: 4.34 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01471/0.4739, allocations: 12.41 MB / 1.463 GB, free: 7.891 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.474, allocations: 3.984 kB / 1.463 GB, free: 7.887 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.754e-06/0.474, allocations: 0 / 1.463 GB, free: 7.887 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0002422/0.4742, allocations: 0 / 1.463 GB, free: 7.887 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.013/0.4872, allocations: 6.391 MB / 1.469 GB, free: 1.434 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4872, allocations: 12.03 kB / 1.469 GB, free: 1.422 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001273/0.4885, allocations: 0.8294 MB / 1.47 GB, free: 0.582 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005031/0.4935, allocations: 1.098 MB / 1.471 GB, free: 15.48 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008734/0.5023, allocations: 3.572 MB / 1.474 GB, free: 11.84 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004136/0.5027, allocations: 423.7 kB / 1.475 GB, free: 11.43 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.504, allocations: 0.5394 MB / 1.475 GB, free: 10.89 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01933/0.5233, allocations: 10.29 MB / 1.485 GB, free: 44 kB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.5235, allocations: 15.88 kB / 1.485 GB, free: 28 kB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007741/0.5242, allocations: 248 kB / 1.486 GB, free: 15.79 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006685/0.5249, allocations: 426.8 kB / 1.486 GB, free: 15.37 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01422/0.5391, allocations: 7.116 MB / 1.493 GB, free: 8.242 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03796/0.5771, allocations: 26.26 MB / 1.519 GB, free: 13.33 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004671/0.5818, allocations: 2.903 MB / 1.521 GB, free: 10.43 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.5848, allocations: 1.922 MB / 1.523 GB, free: 8.504 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.5849, allocations: 25.94 kB / 1.523 GB, free: 8.477 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.44e-05/0.585, allocations: 68.5 kB / 1.523 GB, free: 8.402 MB / 1.217 GB Notification: Performance of pre-optimization done (n=209): time 4.94e-06/0.585, allocations: 4 kB / 1.523 GB, free: 8.398 MB / 1.217 GB Notification: Performance of matching and sorting (n=212): time 0.02514/0.6102, allocations: 10.28 MB / 1.533 GB, free: 14.11 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.6102, allocations: 73.41 kB / 1.534 GB, free: 14.02 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003068/0.6133, allocations: 2.052 MB / 1.536 GB, free: 11.95 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.6135, allocations: 65.7 kB / 1.536 GB, free: 11.88 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001964/0.6154, allocations: 2.478 MB / 1.538 GB, free: 9.379 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007545/0.6162, allocations: 0.7669 MB / 1.539 GB, free: 8.605 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000805/0.617, allocations: 477.5 kB / 1.539 GB, free: 8.133 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.6172, allocations: 301.1 kB / 1.54 GB, free: 7.836 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/0.6193, allocations: 1.372 MB / 1.541 GB, free: 6.461 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002946/0.6223, allocations: 2.108 MB / 1.543 GB, free: 4.039 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005429/0.6277, allocations: 3.77 MB / 1.547 GB, free: 15.96 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.6277, allocations: 4 kB / 1.547 GB, free: 15.96 MB / 1.248 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.0086/0.6363, allocations: 5.03 MB / 1.552 GB, free: 10.9 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.6363, allocations: 12 kB / 1.552 GB, free: 10.89 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.6364, allocations: 28.78 kB / 1.552 GB, free: 10.86 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00373/0.6401, allocations: 1.59 MB / 1.553 GB, free: 9.262 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/0.6418, allocations: 447.3 kB / 1.554 GB, free: 8.824 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02448/0.6662, allocations: 17.9 MB / 1.571 GB, free: 6.465 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002222/0.6685, allocations: 147.8 kB / 1.571 GB, free: 6.32 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/0.6687, allocations: 111.9 kB / 1.571 GB, free: 6.211 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003159/0.6718, allocations: 1.941 MB / 1.573 GB, free: 4.258 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005091/0.6724, allocations: 298.2 kB / 1.573 GB, free: 3.965 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007613/0.68, allocations: 4.4 MB / 1.578 GB, free: 15.53 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.68, allocations: 23.94 kB / 1.578 GB, free: 15.5 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.68, allocations: 16 kB / 1.578 GB, free: 15.49 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/0.68, allocations: 11.95 kB / 1.578 GB, free: 15.48 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01695/0.697, allocations: 9.165 MB / 1.587 GB, free: 6.18 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.697, allocations: 4 kB / 1.587 GB, free: 6.176 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.698, allocations: 235.6 kB / 1.587 GB, free: 5.945 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003505/0.7015, allocations: 1.429 MB / 1.588 GB, free: 4.508 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.7017, allocations: 36 kB / 1.588 GB, free: 4.473 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02468/0.7264, allocations: 17.9 MB / 1.606 GB, free: 2.102 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.7264, allocations: 8 kB / 1.606 GB, free: 2.094 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6421/1.368, allocations: 4.505 MB / 1.61 GB, free: 221.7 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.37, allocations: 0.5793 MB / 1.611 GB, free: 221.7 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003474/1.371, allocations: 39.97 kB / 1.611 GB, free: 221.7 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/1.372, allocations: 116.4 kB / 1.611 GB, free: 221.7 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005073/1.372, allocations: 190.3 kB / 1.611 GB, free: 221.7 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/1.373, allocations: 60.56 kB / 1.611 GB, free: 221.7 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.001881/1.374, allocations: 1.316 MB / 1.613 GB, free: 221.5 MB / 1.295 GB Notification: Performance of sort global known variables: time 8e-08/1.374, allocations: 0.7188 kB / 1.613 GB, free: 221.5 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.003145/1.378, allocations: 1.143 MB / 1.614 GB, free: 221.5 MB / 1.295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007372/1.385, allocations: 5.115 MB / 1.619 GB, free: 220.5 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.007341/1.392, allocations: 4.537 MB / 1.623 GB, free: 218.6 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.392, allocations: 3.547 kB / 1.623 GB, free: 218.6 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.004054/1.396, allocations: 2.808 MB / 1.626 GB, free: 217.3 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/1.4, allocations: 0.905 MB / 1.627 GB, free: 217.1 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04225/1.442, allocations: 30.56 MB / 1.657 GB, free: 202.9 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003258/1.445, allocations: 3.168 MB / 1.66 GB, free: 202.1 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001703/1.447, allocations: 0.5581 MB / 1.66 GB, free: 202 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/1.449, allocations: 1.947 MB / 1.662 GB, free: 200.3 MB / 1.295 GB Notification: Performance of SimCode: time 8.32e-07/1.449, allocations: 0 / 1.662 GB, free: 200.3 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/1.579, allocations: 90.57 MB / 1.751 GB, free: 115.2 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/16.15, allocations: 11.94 kB / 1.751 GB, free: 115.2 MB / 1.295 GB " [Timeout remaining time 284] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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: 23.66207707626745]