Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_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.00789/0.00789, allocations: 104.8 kB / 15.74 MB, free: 6.062 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.001839/0.001839, allocations: 194.7 kB / 16.67 MB, free: 5.973 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.645/2.645, allocations: 437 MB / 0.7105 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.286, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01655/0.3026, allocations: 14.06 MB / 1.18 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01368/0.3163, allocations: 9.384 MB / 1.189 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.318, allocations: 59.69 kB / 1.189 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004641/0.3227, allocations: 1.676 MB / 1.191 GB, free: 14 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00462/0.3273, allocations: 1.578 MB / 1.192 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002147/0.3295, allocations: 0.7523 MB / 1.193 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.003488/0.333, allocations: 2.52 MB / 1.195 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.335, allocations: 1.426 MB / 1.197 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001524/0.3365, allocations: 1.067 MB / 1.198 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.3382, allocations: 1.14 MB / 1.199 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002678/0.3385, allocations: 164 kB / 1.199 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.34, allocations: 0.7955 MB / 1.2 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0005498/0.3406, allocations: 0.6154 MB / 1.201 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0008952/0.3415, allocations: 0.9445 MB / 1.202 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.3443, allocations: 2.755 MB / 1.204 GB, free: 180 kB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3443, allocations: 3.984 kB / 1.204 GB, free: 176 kB / 0.9512 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3444, allocations: 0 / 1.204 GB, free: 176 kB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.088e-05/0.3444, allocations: 0 / 1.204 GB, free: 176 kB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003756/0.3482, allocations: 2.195 MB / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3482, allocations: 16.03 kB / 1.206 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002312/0.3485, allocations: 194.4 kB / 1.207 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01148/0.36, allocations: 2.09 MB / 1.209 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.3631, allocations: 1.303 MB / 1.21 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.492e-05/0.3632, allocations: 90.73 kB / 1.21 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/0.3635, allocations: 119.9 kB / 1.21 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00588/0.3694, allocations: 2.675 MB / 1.213 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.424e-05/0.3695, allocations: 7.938 kB / 1.213 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.3696, allocations: 55.98 kB / 1.213 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006427/0.3703, allocations: 186.1 kB / 1.213 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007816/0.3781, allocations: 2.795 MB / 1.216 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.3946, allocations: 10.48 MB / 1.226 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007597/0.4023, allocations: 2.53 MB / 1.228 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003496/0.4058, allocations: 1.28 MB / 1.23 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/0.406, allocations: 9 kB / 1.23 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.406, allocations: 51.56 kB / 1.23 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 3.146e-06/0.406, allocations: 0 / 1.23 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of matching and sorting (n=131): time 0.04674/0.4528, allocations: 13.38 MB / 1.243 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.4529, allocations: 68.72 kB / 1.243 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/0.4546, allocations: 1.121 MB / 1.244 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002616/0.4549, allocations: 45.7 kB / 1.244 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005093/0.4554, allocations: 0.7287 MB / 1.245 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005427/0.456, allocations: 483.8 kB / 1.245 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005725/0.4565, allocations: 259.5 kB / 1.245 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.4567, allocations: 373.8 kB / 1.246 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003262/0.46, allocations: 1.339 MB / 1.247 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003592/0.4636, allocations: 1.596 MB / 1.249 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5528/1.016, allocations: 2.99 MB / 1.251 GB, free: 77.31 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/1.016, allocations: 2.156 kB / 1.251 GB, free: 77.31 MB / 0.9981 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01268/1.029, allocations: 4.45 MB / 1.256 GB, free: 76.51 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/1.029, allocations: 10.16 kB / 1.256 GB, free: 76.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/1.029, allocations: 7.094 kB / 1.256 GB, free: 76.51 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005585/1.035, allocations: 1.429 MB / 1.257 GB, free: 76.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/1.037, allocations: 438.9 kB / 1.258 GB, free: 76.14 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0246/1.062, allocations: 26.69 MB / 1.284 GB, free: 54.17 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.065, allocations: 308.7 kB / 1.284 GB, free: 54.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/1.065, allocations: 62.56 kB / 1.284 GB, free: 54.13 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008128/1.066, allocations: 435.7 kB / 1.284 GB, free: 53.86 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003286/1.066, allocations: 172.7 kB / 1.285 GB, free: 53.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.078, allocations: 4.458 MB / 1.289 GB, free: 52.29 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/1.078, allocations: 12.44 kB / 1.289 GB, free: 52.29 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.969e-05/1.078, allocations: 13.94 kB / 1.289 GB, free: 52.29 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/1.078, allocations: 6.422 kB / 1.289 GB, free: 52.29 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01593/1.094, allocations: 6.773 MB / 1.296 GB, free: 49.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.094, allocations: 3.062 kB / 1.296 GB, free: 49.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/1.096, allocations: 375.6 kB / 1.296 GB, free: 49.74 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004709/1.1, allocations: 1.303 MB / 1.297 GB, free: 49.38 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002081/1.101, allocations: 38.73 kB / 1.297 GB, free: 49.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02095/1.122, allocations: 25.52 MB / 1.322 GB, free: 27.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.122, allocations: 3.5 kB / 1.322 GB, free: 27.84 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/1.132, allocations: 4.213 MB / 1.326 GB, free: 26.33 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.133, allocations: 467.1 kB / 1.327 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/1.133, allocations: 31.38 kB / 1.327 GB, free: 26.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/1.135, allocations: 309.6 kB / 1.327 GB, free: 26 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004643/1.136, allocations: 124.4 kB / 1.327 GB, free: 25.98 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/1.136, allocations: 51.12 kB / 1.327 GB, free: 25.96 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001055/1.137, allocations: 0.7505 MB / 1.328 GB, free: 25.65 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/1.137, allocations: 0 / 1.328 GB, free: 25.65 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002306/1.139, allocations: 0.5703 MB / 1.329 GB, free: 25.59 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01041/1.15, allocations: 4.798 MB / 1.333 GB, free: 22.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0103/1.16, allocations: 5.148 MB / 1.338 GB, free: 19.21 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.16, allocations: 1.094 kB / 1.338 GB, free: 19.21 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006294/1.166, allocations: 3.498 MB / 1.342 GB, free: 16.63 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/1.169, allocations: 0.5473 MB / 1.342 GB, free: 16.36 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03595/1.205, allocations: 19.41 MB / 1.361 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/1.206, allocations: 1.485 MB / 1.363 GB, free: 15.48 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001776/1.208, allocations: 425.6 kB / 1.363 GB, free: 15.05 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009944/1.209, allocations: 0.6281 MB / 1.364 GB, free: 14.43 MB / 1.014 GB Notification: Performance of SimCode: time 5.31e-07/1.209, allocations: 0 / 1.364 GB, free: 14.43 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/1.363, allocations: 51.67 MB / 1.414 GB, free: 11.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.22/19.58, allocations: 10.53 kB / 1.414 GB, free: 11.4 MB / 1.061 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches