Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line",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.001122/0.001122, allocations: 104.2 kB / 17.06 MB, free: 6.027 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.001199/0.001199, allocations: 196 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1725/0.1725, allocations: 37.99 MB / 309.2 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.91 kB / 431.4 MB, free: 16.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1215, allocations: 55.25 MB / 486.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.006971/0.1285, allocations: 5.169 MB / 491.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.132, allocations: 1.793 MB / 493.6 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005052/0.1325, allocations: 19.88 kB / 493.6 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.134, allocations: 446.5 kB / 494 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009767/0.135, allocations: 294.4 kB / 494.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.1362, allocations: 355.3 kB / 494.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.1375, allocations: 0.7597 MB / 495.4 MB, free: 116 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007109/0.1382, allocations: 382.1 kB / 495.8 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006888/0.1389, allocations: 342.8 kB / 496.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.14, allocations: 462.6 kB / 496.6 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001928/0.1402, allocations: 48 kB / 496.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005372/0.1407, allocations: 167.8 kB / 496.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003927/0.1411, allocations: 287.3 kB / 497.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005515/0.1417, allocations: 342.3 kB / 497.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.1428, allocations: 0.8138 MB / 498.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1429, allocations: 3.938 kB / 498.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1429, allocations: 4 kB / 498.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.89e-05/0.1429, allocations: 0 / 498.2 MB, free: 13.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002242/0.1452, allocations: 0.9059 MB / 499.1 MB, free: 12.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.1452, allocations: 11.89 kB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.1454, allocations: 110.6 kB / 499.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.1465, allocations: 135.9 kB / 499.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.1478, allocations: 0.5315 MB / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.1478, allocations: 36.94 kB / 500 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/0.1482, allocations: 127.8 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.1496, allocations: 0.8703 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.1497, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.1497, allocations: 24 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004617/0.1502, allocations: 68.94 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1512, allocations: 0.6166 MB / 0.4899 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004849/0.1561, allocations: 3.785 MB / 0.4936 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.1572, allocations: 0.5383 MB / 0.4941 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/0.1577, allocations: 322.9 kB / 0.4944 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-05/0.1577, allocations: 16.34 kB / 0.4944 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.1578, allocations: 42.94 kB / 0.4945 GB, free: 4.809 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.445e-06/0.1578, allocations: 0 / 0.4945 GB, free: 4.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003215/0.161, allocations: 1.832 MB / 0.4963 GB, free: 2.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.1611, allocations: 81.55 kB / 0.4964 GB, free: 2.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/0.1616, allocations: 425.6 kB / 0.4968 GB, free: 2.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.775e-05/0.1617, allocations: 37.7 kB / 0.4968 GB, free: 2.359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.1619, allocations: 323.7 kB / 0.4971 GB, free: 2.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.1621, allocations: 193.3 kB / 0.4973 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002641/0.1624, allocations: 162.1 kB / 0.4974 GB, free: 1.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.1626, allocations: 370.7 kB / 0.4978 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005716/0.1631, allocations: 381.4 kB / 0.4982 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007401/0.1639, allocations: 0.5941 MB / 0.4987 GB, free: 252 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.1653, allocations: 1.065 MB / 0.4998 GB, free: 15.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1653, allocations: 4 kB / 0.4998 GB, free: 15.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004517/0.1698, allocations: 1.999 MB / 0.5017 GB, free: 13.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1699, allocations: 8 kB / 0.5017 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.1699, allocations: 12.59 kB / 0.5018 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002471/0.1724, allocations: 0.9729 MB / 0.5027 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.1728, allocations: 115.8 kB / 0.5028 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.1839, allocations: 8.193 MB / 0.5108 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005114/0.1845, allocations: 39.97 kB / 0.5109 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.1846, allocations: 39.92 kB / 0.5109 GB, free: 3.395 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (23,12,23.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003724/0.185, allocations: 241.6 kB / 0.5111 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.1851, allocations: 47.44 kB / 0.5112 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.1864, allocations: 0.7374 MB / 0.5119 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.1864, allocations: 8 kB / 0.5119 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.1864, allocations: 0 / 0.5119 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.1864, allocations: 3.984 kB / 0.5119 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.1892, allocations: 1.517 MB / 0.5134 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1893, allocations: 0 / 0.5134 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.1903, allocations: 187.8 kB / 0.5136 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.1904, allocations: 4 kB / 0.5136 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.061e-05/0.1904, allocations: 40.08 kB / 0.5136 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1904, allocations: 4 kB / 0.5136 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1905, allocations: 0 / 0.5136 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.1918, allocations: 0.9933 MB / 0.5146 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.192, allocations: 124.5 kB / 0.5147 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-05/0.1921, allocations: 27.98 kB / 0.5147 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003424/0.1925, allocations: 27.97 kB / 0.5147 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.1925, allocations: 32.39 kB / 0.5148 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/0.1926, allocations: 8 kB / 0.5148 GB, free: 15.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003053/0.1929, allocations: 287.1 kB / 0.5151 GB, free: 15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1929, allocations: 0 / 0.5151 GB, free: 15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008145/0.1937, allocations: 212 kB / 0.5153 GB, free: 14.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.1954, allocations: 1.573 MB / 0.5168 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002595/0.198, allocations: 1.488 MB / 0.5183 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.198, allocations: 0 / 0.5183 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.1985, allocations: 310.3 kB / 0.5185 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.1992, allocations: 134.3 kB / 0.5187 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.2159, allocations: 9.723 MB / 0.5282 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006615/0.2166, allocations: 0.9843 MB / 0.5291 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.2384/0.4551, allocations: 195.6 kB / 0.5293 GB, free: 50.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005877/0.4557, allocations: 235.5 kB / 0.5295 GB, free: 50.94 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4557, allocations: 1.125 kB / 0.5295 GB, free: 50.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04861/0.5043, allocations: 17.81 MB / 0.5469 GB, free: 46.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.77, allocations: 8.219 kB / 0.5469 GB, free: 46.16 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)