Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",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.00703/0.00703, allocations: 94.98 kB / 15.73 MB, free: 6.039 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.001766/0.001766, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.59/2.59, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2652, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03373/0.299, allocations: 30.77 MB / 1.196 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02072/0.3197, allocations: 13.58 MB / 1.21 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002843/0.3226, allocations: 147.2 kB / 1.21 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.008108/0.3308, allocations: 3.199 MB / 1.213 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007329/0.3381, allocations: 2.755 MB / 1.215 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005129/0.3433, allocations: 2.023 MB / 1.217 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.009267/0.3525, allocations: 7.632 MB / 1.225 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01075/0.3633, allocations: 8.24 MB / 1.233 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005685/0.369, allocations: 3.467 MB / 1.236 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005437/0.3745, allocations: 3.383 MB / 1.24 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.3763, allocations: 0.5977 MB / 1.24 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00378/0.3801, allocations: 1.49 MB / 1.242 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003105/0.3832, allocations: 2.354 MB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.005292/0.3885, allocations: 2.898 MB / 1.247 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.5521/0.9406, allocations: 9.472 MB / 1.256 GB, free: 29.87 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.9406, allocations: 1.031 kB / 1.256 GB, free: 29.87 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9406, allocations: 0.625 kB / 1.256 GB, free: 29.87 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002596/0.9409, allocations: 0.9375 kB / 1.256 GB, free: 29.87 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: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01329/0.9542, allocations: 5.273 MB / 1.261 GB, free: 27.74 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.9543, allocations: 9.906 kB / 1.261 GB, free: 27.74 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001259/0.9555, allocations: 0.618 MB / 1.262 GB, free: 27.67 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006512/0.9621, allocations: 1.022 MB / 1.263 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008811/0.9709, allocations: 3.099 MB / 1.266 GB, free: 26.66 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003947/0.9713, allocations: 315.4 kB / 1.266 GB, free: 26.65 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001775/0.9731, allocations: 418.5 kB / 1.267 GB, free: 26.65 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.9868, allocations: 6.792 MB / 1.273 GB, free: 25.79 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.9869, allocations: 19.8 kB / 1.273 GB, free: 25.79 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005743/0.9875, allocations: 189 kB / 1.273 GB, free: 25.79 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009302/0.9884, allocations: 374.9 kB / 1.274 GB, free: 25.78 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.9985, allocations: 5.11 MB / 1.279 GB, free: 25.73 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03031/1.029, allocations: 30.56 MB / 1.309 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/1.031, allocations: 1.383 MB / 1.31 GB, free: 2.258 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/1.032, allocations: 1.331 MB / 1.311 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.768e-05/1.032, allocations: 17.81 kB / 1.311 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/1.032, allocations: 50.62 kB / 1.311 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=130): time 3.096e-06/1.032, allocations: 3.375 kB / 1.311 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of matching and sorting (n=199): time 0.08542/1.118, allocations: 23.15 MB / 1.334 GB, free: 10.28 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/1.118, allocations: 72.69 kB / 1.334 GB, free: 10.21 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003258/1.121, allocations: 2.061 MB / 1.336 GB, free: 9.109 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003787/1.121, allocations: 57.52 kB / 1.336 GB, free: 9.055 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.123, allocations: 2.068 MB / 1.338 GB, free: 7.242 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008686/1.124, allocations: 0.7167 MB / 1.339 GB, free: 6.621 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/1.125, allocations: 413.2 kB / 1.339 GB, free: 6.395 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.537e-05/1.125, allocations: 305.1 kB / 1.339 GB, free: 6.094 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/1.127, allocations: 1.434 MB / 1.341 GB, free: 5.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002525/1.13, allocations: 2.012 MB / 1.343 GB, free: 3.824 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004543/1.134, allocations: 3.694 MB / 1.346 GB, free: 1.461 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.755e-05/1.134, allocations: 7.906 kB / 1.346 GB, free: 1.457 MB / 1.014 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01055/1.145, allocations: 5.675 MB / 1.352 GB, free: 14.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/1.145, allocations: 13.5 kB / 1.352 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/1.145, allocations: 16.78 kB / 1.352 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006521/1.151, allocations: 2.078 MB / 1.354 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/1.153, allocations: 383.4 kB / 1.354 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03966/1.192, allocations: 38.46 MB / 1.392 GB, free: 4.941 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002944/1.195, allocations: 123.9 kB / 1.392 GB, free: 4.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004677/1.196, allocations: 88.08 kB / 1.392 GB, free: 4.734 MB / 1.061 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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%), (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 prepare postOptimizeDAE: time 0.003079/1.199, allocations: 1.509 MB / 1.394 GB, free: 3.242 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007711/1.2, allocations: 302.2 kB / 1.394 GB, free: 2.945 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/1.21, allocations: 5.209 MB / 1.399 GB, free: 13.73 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/1.21, allocations: 23.94 kB / 1.399 GB, free: 13.7 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.047e-05/1.211, allocations: 16 kB / 1.399 GB, free: 13.69 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.636e-05/1.211, allocations: 11.95 kB / 1.399 GB, free: 13.68 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02006/1.231, allocations: 9.672 MB / 1.408 GB, free: 3.945 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.231, allocations: 15.12 kB / 1.408 GB, free: 3.934 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/1.232, allocations: 217.6 kB / 1.409 GB, free: 3.734 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005808/1.237, allocations: 1.839 MB / 1.41 GB, free: 1.852 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/1.238, allocations: 39.98 kB / 1.411 GB, free: 1.812 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03674/1.274, allocations: 37.47 MB / 1.447 GB, free: 10 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/1.274, allocations: 11.28 kB / 1.447 GB, free: 9.992 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009427/1.284, allocations: 4.928 MB / 1.452 GB, free: 4.977 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/1.286, allocations: 0.628 MB / 1.453 GB, free: 4.328 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007004/1.286, allocations: 51.23 kB / 1.453 GB, free: 4.281 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/1.288, allocations: 127.8 kB / 1.453 GB, free: 4.156 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005996/1.289, allocations: 192.1 kB / 1.453 GB, free: 3.977 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/1.289, allocations: 60 kB / 1.453 GB, free: 3.918 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.00231/1.291, allocations: 1.374 MB / 1.454 GB, free: 2.535 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.2e-07/1.291, allocations: 0 / 1.454 GB, free: 2.535 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.005178/1.296, allocations: 1.047 MB / 1.455 GB, free: 1.488 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009889/1.306, allocations: 5.546 MB / 1.461 GB, free: 11.86 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.009758/1.316, allocations: 6.312 MB / 1.467 GB, free: 5.434 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.316, allocations: 0 / 1.467 GB, free: 5.434 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.006552/1.323, allocations: 4.407 MB / 1.471 GB, free: 0.8477 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/1.328, allocations: 0.9872 MB / 1.472 GB, free: 15.9 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05559/1.383, allocations: 30.79 MB / 1.502 GB, free: 400 kB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004011/1.387, allocations: 3.125 MB / 1.505 GB, free: 13.23 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001796/1.389, allocations: 0.5159 MB / 1.506 GB, free: 12.71 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002029/1.391, allocations: 1.671 MB / 1.507 GB, free: 11.04 MB / 1.186 GB Notification: Performance of SimCode: time 7.92e-07/1.391, allocations: 4 kB / 1.507 GB, free: 11.04 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/1.578, allocations: 88.11 MB / 1.593 GB, free: 4.273 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/16.35, allocations: 18.75 kB / 1.594 GB, free: 4.258 MB / 1.264 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches