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.001503/0.001509, allocations: 102.4 kB / 17.06 MB, free: 6.125 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.001958/0.001958, allocations: 195 kB / 18 MB, free: 5.203 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.415/1.415, 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.1738/0.1738, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001343/0.001343, allocations: 63.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09887, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Line): time 0.007032/0.1059, allocations: 5.184 MB / 491.8 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003488/0.1095, allocations: 1.796 MB / 493.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004954/0.11, allocations: 11.94 kB / 493.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.1115, allocations: 446 kB / 494 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007947/0.1124, allocations: 298.4 kB / 494.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009284/0.1133, allocations: 363.2 kB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008874/0.1142, allocations: 0.752 MB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000546/0.1148, allocations: 382.1 kB / 495.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004884/0.1153, allocations: 342.7 kB / 496.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006835/0.116, allocations: 462.5 kB / 496.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.1161, allocations: 52 kB / 496.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003646/0.1165, allocations: 167.8 kB / 496.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002823/0.1167, allocations: 295.2 kB / 497.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004381/0.1172, allocations: 334.4 kB / 497.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008876/0.1181, allocations: 0.8099 MB / 498.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1181, allocations: 0 / 498.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1181, allocations: 0 / 498.2 MB, free: 13.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.745e-05/0.1181, allocations: 0 / 498.2 MB, free: 13.17 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.001827/0.12, allocations: 0.9175 MB / 499.1 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.12, allocations: 15.89 kB / 499.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.1201, allocations: 94.69 kB / 499.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009467/0.1211, allocations: 143.9 kB / 499.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009076/0.122, allocations: 0.5315 MB / 499.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1221, allocations: 36.94 kB / 500 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.1224, allocations: 139.8 kB / 0.4884 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1236, allocations: 0.8548 MB / 0.4892 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1236, allocations: 0 / 0.4892 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.1237, allocations: 20 kB / 0.4892 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004167/0.1241, allocations: 80.91 kB / 0.4893 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009528/0.1251, allocations: 0.6243 MB / 0.4899 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004346/0.1294, allocations: 3.765 MB / 0.4936 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009969/0.1304, allocations: 0.5383 MB / 0.4941 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/0.1309, allocations: 326.8 kB / 0.4944 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.687e-05/0.1309, allocations: 16.36 kB / 0.4944 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.131, allocations: 39 kB / 0.4945 GB, free: 4.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/0.131, allocations: 0 / 0.4945 GB, free: 4.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002795/0.1338, allocations: 1.832 MB / 0.4963 GB, free: 2.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.1338, allocations: 89.48 kB / 0.4964 GB, free: 2.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.1342, allocations: 421.6 kB / 0.4968 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.1343, allocations: 41.83 kB / 0.4968 GB, free: 2.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.1345, allocations: 323.7 kB / 0.4971 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1346, allocations: 201.3 kB / 0.4973 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.1349, allocations: 146.1 kB / 0.4974 GB, free: 1.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.135, allocations: 370.7 kB / 0.4978 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004916/0.1355, allocations: 381.5 kB / 0.4982 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006055/0.1361, allocations: 0.6018 MB / 0.4987 GB, free: 112 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.1374, allocations: 1.061 MB / 0.4998 GB, free: 14.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1374, allocations: 7.938 kB / 0.4998 GB, free: 14.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.004121/0.1415, allocations: 2 MB / 0.5017 GB, free: 12.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1416, allocations: 8 kB / 0.5017 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.1416, allocations: 11.94 kB / 0.5018 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002389/0.144, allocations: 0.9652 MB / 0.5027 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.1444, allocations: 119.8 kB / 0.5028 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.1549, allocations: 8.189 MB / 0.5108 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.1554, allocations: 35.97 kB / 0.5108 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.1555, allocations: 35.94 kB / 0.5109 GB, free: 3.27 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.0003219/0.1558, allocations: 253.6 kB / 0.5111 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.1559, allocations: 47.42 kB / 0.5112 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.1571, allocations: 0.7296 MB / 0.5119 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1571, allocations: 4 kB / 0.5119 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1571, allocations: 3.984 kB / 0.5119 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.1571, allocations: 4 kB / 0.5119 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/0.1595, allocations: 1.528 MB / 0.5134 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1595, allocations: 96 / 0.5134 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.1605, allocations: 187.8 kB / 0.5136 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.1605, allocations: 4 kB / 0.5136 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-05/0.1606, allocations: 31.92 kB / 0.5136 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.1606, allocations: 0 / 0.5136 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.1606, allocations: 8.062 kB / 0.5136 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.1618, allocations: 0.9973 MB / 0.5146 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.162, allocations: 120.5 kB / 0.5147 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.1621, allocations: 27.98 kB / 0.5147 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.1624, allocations: 19.97 kB / 0.5147 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.56e-05/0.1625, allocations: 32.39 kB / 0.5148 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/0.1625, allocations: 19.98 kB / 0.5148 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.1628, allocations: 283.1 kB / 0.5151 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1628, allocations: 3.938 kB / 0.5151 GB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007599/0.1636, allocations: 212 kB / 0.5153 GB, free: 14.65 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.001542/0.1651, allocations: 1.573 MB / 0.5168 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.1675, allocations: 1.468 MB / 0.5182 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1675, allocations: 4.625 kB / 0.5182 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004041/0.1679, allocations: 314.2 kB / 0.5185 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006431/0.1686, allocations: 141.9 kB / 0.5187 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.1833, allocations: 9.727 MB / 0.5282 GB, free: 1.051 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006283/0.1839, allocations: 0.9765 MB / 0.5291 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.1995/0.3834, allocations: 200.3 kB / 0.5293 GB, free: 51.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.3839, allocations: 231.6 kB / 0.5295 GB, free: 51.04 MB / 414.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3839, allocations: 1.062 kB / 0.5295 GB, free: 51.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0483/0.4322, allocations: 17.81 MB / 0.5469 GB, free: 46.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.28, allocations: 12.94 kB / 0.547 GB, free: 46.21 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)