Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001313/0.001312, allocations: 105.8 kB / 16.27 MB, free: 6.41 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.001374/0.001374, allocations: 184.6 kB / 17.2 MB, free: 5.953 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.29/1.29, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7534/0.7534, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 67.89 kB / 0.4912 GB, free: 7.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3505, allocations: 77.92 MB / 0.5673 GB, free: 32.78 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01462/0.3651, allocations: 14.76 MB / 0.5817 GB, free: 22.67 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.3782, allocations: 10.35 MB / 0.5918 GB, free: 14.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.3795, allocations: 53.84 kB / 0.5919 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003454/0.3831, allocations: 1.698 MB / 0.5935 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004311/0.3874, allocations: 1.813 MB / 0.5953 GB, free: 12.22 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001557/0.389, allocations: 0.76 MB / 0.596 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003022/0.392, allocations: 2.741 MB / 0.5987 GB, free: 10.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.3934, allocations: 1.426 MB / 0.6001 GB, free: 9.148 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.3951, allocations: 1.492 MB / 0.6016 GB, free: 7.652 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009966/0.3961, allocations: 1.164 MB / 0.6027 GB, free: 6.484 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.3963, allocations: 160 kB / 0.6029 GB, free: 6.328 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.3974, allocations: 0.7877 MB / 0.6036 GB, free: 5.539 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003357/0.3977, allocations: 0.6075 MB / 0.6042 GB, free: 4.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005959/0.3983, allocations: 0.9484 MB / 0.6051 GB, free: 3.977 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.4001, allocations: 2.741 MB / 0.6078 GB, free: 1.227 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4001, allocations: 3.938 kB / 0.6078 GB, free: 1.223 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4002, allocations: 4 kB / 0.6078 GB, free: 1.219 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.4002, allocations: 0 / 0.6078 GB, free: 1.219 MB / 446.1 MB 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.002985/0.4032, allocations: 2.17 MB / 0.6099 GB, free: 14.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.4032, allocations: 8.625 kB / 0.61 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002064/0.4034, allocations: 190.4 kB / 0.6101 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.4148, allocations: 2.112 MB / 0.6122 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.4171, allocations: 1.213 MB / 0.6134 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.233e-05/0.4172, allocations: 86.69 kB / 0.6135 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.4174, allocations: 123.8 kB / 0.6136 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005247/0.4227, allocations: 2.676 MB / 0.6162 GB, free: 8.367 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.481e-05/0.4227, allocations: 7.938 kB / 0.6162 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000162/0.4229, allocations: 59.92 kB / 0.6163 GB, free: 8.301 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006386/0.4235, allocations: 194.1 kB / 0.6164 GB, free: 8.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007276/0.4308, allocations: 2.787 MB / 0.6192 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.4441, allocations: 10.51 MB / 0.6294 GB, free: 10.22 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00653/0.4506, allocations: 2.344 MB / 0.6317 GB, free: 7.844 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/0.4537, allocations: 1.28 MB / 0.633 GB, free: 6.562 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.047e-05/0.4538, allocations: 16.98 kB / 0.633 GB, free: 6.547 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.4538, allocations: 39.56 kB / 0.633 GB, free: 6.496 MB / 478.1 MB Notification: Performance of pre-optimization done (n=89): time 2.234e-06/0.4538, allocations: 4 kB / 0.633 GB, free: 6.492 MB / 478.1 MB Notification: Performance of matching and sorting (n=153): time 0.05969/0.5135, allocations: 16.48 MB / 0.6491 GB, free: 5.855 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.5136, allocations: 68.72 kB / 0.6492 GB, free: 5.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.5152, allocations: 1.168 MB / 0.6503 GB, free: 4.594 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.5154, allocations: 53.7 kB / 0.6504 GB, free: 4.535 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000512/0.5159, allocations: 0.7475 MB / 0.6511 GB, free: 3.781 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004508/0.5163, allocations: 0.516 MB / 0.6516 GB, free: 3.258 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005215/0.5169, allocations: 287.4 kB / 0.6519 GB, free: 2.973 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.517, allocations: 305.1 kB / 0.6522 GB, free: 2.672 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003472/0.5204, allocations: 1.51 MB / 0.6537 GB, free: 1.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003629/0.5241, allocations: 1.776 MB / 0.6554 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00716/0.5312, allocations: 3.365 MB / 0.6587 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.5313, allocations: 4 kB / 0.6587 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01316/0.5444, allocations: 5.273 MB / 0.6638 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.5445, allocations: 8 kB / 0.6638 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.5445, allocations: 8 kB / 0.6638 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006741/0.5512, allocations: 1.903 MB / 0.6657 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.5532, allocations: 419.2 kB / 0.6661 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02758/0.5808, allocations: 24.14 MB / 0.6897 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002627/0.5834, allocations: 311.6 kB / 0.69 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.5836, allocations: 67.91 kB / 0.69 GB, free: 10.53 MB / 0.5294 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008312/0.5844, allocations: 465.4 kB / 0.6905 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.5847, allocations: 173.9 kB / 0.6906 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/0.5982, allocations: 5.324 MB / 0.6958 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.5983, allocations: 16 kB / 0.6959 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-05/0.5983, allocations: 16 kB / 0.6959 GB, free: 4.492 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.5983, allocations: 7.969 kB / 0.6959 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/0.6148, allocations: 7.414 MB / 0.7031 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.6149, allocations: 3.938 kB / 0.7031 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.6165, allocations: 355.3 kB / 0.7035 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00592/0.6225, allocations: 1.726 MB / 0.7052 GB, free: 10.85 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.6226, allocations: 47.98 kB / 0.7052 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02646/0.6491, allocations: 23.32 MB / 0.728 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.6491, allocations: 0 / 0.728 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/0.6616, allocations: 4.893 MB / 0.7327 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009417/0.6625, allocations: 498.9 kB / 0.7332 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003907/0.6629, allocations: 31.94 kB / 0.7333 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002295/0.6652, allocations: 315.5 kB / 0.7336 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000554/0.6658, allocations: 153 kB / 0.7337 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.666, allocations: 55.97 kB / 0.7338 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001203/0.6672, allocations: 0.7899 MB / 0.7345 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6672, allocations: 0 / 0.7345 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002081/0.6693, allocations: 0.6523 MB / 0.7352 GB, free: 10.9 MB / 0.5762 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01224/0.6815, allocations: 5.478 MB / 0.7405 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.2285/0.9101, allocations: 5.423 MB / 0.7458 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9101, allocations: 0.9375 kB / 0.7458 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00738/0.9175, allocations: 3.349 MB / 0.7491 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.92, allocations: 0.5576 MB / 0.7496 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0452/0.9652, allocations: 22.98 MB / 0.7721 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.9663, allocations: 1.571 MB / 0.7736 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001678/0.968, allocations: 382.1 kB / 0.774 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006977/0.9687, allocations: 0.6609 MB / 0.7746 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of SimCode: time 8.12e-07/0.9687, allocations: 0 / 0.7746 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08211/1.051, allocations: 58.31 MB / 0.8316 GB, free: 93.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.758/10.81, allocations: 9.016 kB / 0.8316 GB, free: 93.3 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > IBPSA_latest_IBPSA.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1)