Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007415/0.007415, allocations: 99.16 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001892/0.001892, allocations: 198.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.695/2.695, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 67.89 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6852/0.6873, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03237/0.7198, allocations: 26.66 MB / 1.246 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01381/0.7336, allocations: 8.075 MB / 1.254 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.7356, allocations: 111.4 kB / 1.254 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.006644/0.7423, allocations: 2.766 MB / 1.257 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003816/0.7461, allocations: 1.582 MB / 1.258 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003941/0.75, allocations: 1.682 MB / 1.26 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.007355/0.7574, allocations: 6.142 MB / 1.266 GB, free: 2.906 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008865/0.7663, allocations: 7.319 MB / 1.273 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004304/0.7706, allocations: 2.563 MB / 1.276 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004363/0.775, allocations: 2.839 MB / 1.279 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008794/0.7759, allocations: 0.5078 MB / 1.279 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002653/0.7786, allocations: 1.279 MB / 1.28 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00215/0.7807, allocations: 2.047 MB / 1.282 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002962/0.7837, allocations: 2.385 MB / 1.285 GB, free: 15.82 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.009043/0.7928, allocations: 8.083 MB / 1.292 GB, free: 7.723 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.7928, allocations: 0 / 1.292 GB, free: 7.723 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.984e-06/0.7928, allocations: 0 / 1.292 GB, free: 7.723 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001497/0.793, allocations: 0 / 1.292 GB, free: 7.723 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.008793/0.8018, allocations: 4.336 MB / 1.297 GB, free: 3.316 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.8018, allocations: 11.97 kB / 1.297 GB, free: 3.305 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007996/0.8026, allocations: 0.5382 MB / 1.297 GB, free: 2.758 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004319/0.8069, allocations: 0.818 MB / 1.298 GB, free: 1.938 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004565/0.8115, allocations: 2.582 MB / 1.301 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.8118, allocations: 287.5 kB / 1.301 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007066/0.8125, allocations: 380.4 kB / 1.301 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009461/0.8219, allocations: 5.996 MB / 1.307 GB, free: 8.398 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.134e-05/0.822, allocations: 15.88 kB / 1.307 GB, free: 8.383 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003878/0.8224, allocations: 159.9 kB / 1.307 GB, free: 8.227 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005915/0.823, allocations: 286.9 kB / 1.308 GB, free: 7.945 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007427/0.8305, allocations: 4.524 MB / 1.312 GB, free: 3.414 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02819/0.8587, allocations: 27.5 MB / 1.339 GB, free: 5.414 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.8604, allocations: 1.117 MB / 1.34 GB, free: 4.289 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.8618, allocations: 1.023 MB / 1.341 GB, free: 3.266 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.608e-05/0.8619, allocations: 12.98 kB / 1.341 GB, free: 3.254 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.8619, allocations: 47.56 kB / 1.341 GB, free: 3.199 MB / 1.061 GB Notification: Performance of pre-optimization done (n=110): time 2.735e-06/0.8619, allocations: 0 / 1.341 GB, free: 3.199 MB / 1.061 GB Notification: Performance of matching and sorting (n=131): time 0.02268/0.8846, allocations: 9.719 MB / 1.35 GB, free: 9.27 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.8847, allocations: 68.72 kB / 1.35 GB, free: 9.191 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/0.8868, allocations: 1.494 MB / 1.352 GB, free: 7.699 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.8869, allocations: 53.7 kB / 1.352 GB, free: 7.641 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.8882, allocations: 1.715 MB / 1.354 GB, free: 5.906 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/0.8886, allocations: 491.8 kB / 1.354 GB, free: 5.422 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005217/0.8891, allocations: 331.4 kB / 1.354 GB, free: 5.09 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.8893, allocations: 305.1 kB / 1.355 GB, free: 4.789 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.8907, allocations: 0.9174 MB / 1.356 GB, free: 3.871 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.8925, allocations: 1.463 MB / 1.357 GB, free: 2.164 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003402/0.8959, allocations: 2.546 MB / 1.36 GB, free: 15.38 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.8959, allocations: 4 kB / 1.36 GB, free: 15.37 MB / 1.092 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006354/0.9023, allocations: 3.298 MB / 1.363 GB, free: 12.04 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.9023, allocations: 13 kB / 1.363 GB, free: 12.02 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/0.9024, allocations: 16 kB / 1.363 GB, free: 12.01 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002363/0.9047, allocations: 0.7451 MB / 1.364 GB, free: 11.23 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.9064, allocations: 387.3 kB / 1.364 GB, free: 10.86 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/0.9238, allocations: 17.06 MB / 1.381 GB, free: 8.543 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.9254, allocations: 95.91 kB / 1.381 GB, free: 8.449 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.9255, allocations: 75.98 kB / 1.381 GB, free: 8.375 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002032/0.9276, allocations: 1.321 MB / 1.382 GB, free: 7.043 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003545/0.9279, allocations: 210.7 kB / 1.382 GB, free: 6.836 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005344/0.9333, allocations: 2.784 MB / 1.385 GB, free: 4.012 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.9333, allocations: 12 kB / 1.385 GB, free: 4 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.9333, allocations: 8 kB / 1.385 GB, free: 3.992 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.9333, allocations: 11.92 kB / 1.385 GB, free: 3.98 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.9436, allocations: 6.209 MB / 1.391 GB, free: 13.6 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.9437, allocations: 4 kB / 1.391 GB, free: 13.59 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.9449, allocations: 235.6 kB / 1.391 GB, free: 13.36 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00209/0.947, allocations: 0.6715 MB / 1.392 GB, free: 12.66 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.915e-05/0.9471, allocations: 32 kB / 1.392 GB, free: 12.63 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0168/0.9639, allocations: 16.79 MB / 1.408 GB, free: 10.58 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/0.964, allocations: 7.938 kB / 1.408 GB, free: 10.57 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006591/0.9706, allocations: 4.017 MB / 1.412 GB, free: 6.449 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009017/0.9715, allocations: 459.7 kB / 1.413 GB, free: 5.98 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/0.9717, allocations: 39.86 kB / 1.413 GB, free: 5.941 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009052/0.9727, allocations: 79.91 kB / 1.413 GB, free: 5.863 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.973, allocations: 120.7 kB / 1.413 GB, free: 5.746 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-05/0.9731, allocations: 39.98 kB / 1.413 GB, free: 5.707 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.001377/0.9745, allocations: 0.9981 MB / 1.414 GB, free: 4.719 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9745, allocations: 0 / 1.414 GB, free: 4.719 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.002054/0.9765, allocations: 0.6875 MB / 1.415 GB, free: 4.031 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,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.006875/0.9834, allocations: 4.607 MB / 1.419 GB, free: 15.3 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.005563/0.989, allocations: 3.531 MB / 1.423 GB, free: 11.66 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.989, allocations: 0 / 1.423 GB, free: 11.66 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.003422/0.9924, allocations: 2.31 MB / 1.425 GB, free: 9.234 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/0.9954, allocations: 0.6703 MB / 1.425 GB, free: 8.582 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/1.029, allocations: 21.27 MB / 1.446 GB, free: 2.438 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002923/1.032, allocations: 2.664 MB / 1.449 GB, free: 15.74 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001445/1.033, allocations: 481.4 kB / 1.449 GB, free: 15.27 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/1.035, allocations: 1.284 MB / 1.451 GB, free: 13.98 MB / 1.186 GB Notification: Performance of SimCode: time 5.11e-07/1.035, allocations: 0 / 1.451 GB, free: 13.98 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1228/1.158, allocations: 57.22 MB / 1.506 GB, free: 5.496 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.85, allocations: 12.31 kB / 1.506 GB, free: 5.488 MB / 1.232 GB (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches