Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.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.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",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.0009296/0.0009296, allocations: 90.67 kB / 16.31 MB, free: 6.457 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.001102/0.001102, allocations: 183.1 kB / 17.21 MB, free: 6.328 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.565/1.565, allocations: 205.4 MB / 223.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3512/0.3512, allocations: 38.06 MB / 309.7 MB, free: 9.027 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.0005342/0.0005342, allocations: 12 kB / 376.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.13, allocations: 56.33 MB / 433 MB, free: 6.715 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006013/0.136, allocations: 4.583 MB / 437.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.1386, allocations: 1.451 MB / 439 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.1391, allocations: 23.81 kB / 439 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.1395, allocations: 103.3 kB / 439.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000777/0.1403, allocations: 266.6 kB / 439.4 MB, free: 272 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/0.1409, allocations: 171.7 kB / 439.5 MB, free: 100 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000895/0.1418, allocations: 0.67 MB / 440.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.1429, allocations: 0.5153 MB / 440.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005585/0.1434, allocations: 207 kB / 440.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006659/0.1441, allocations: 283.1 kB / 441.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.843e-05/0.1442, allocations: 16 kB / 441.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003072/0.1445, allocations: 79.88 kB / 441.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.1448, allocations: 187.5 kB / 441.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.145, allocations: 97.52 kB / 441.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.1455, allocations: 394.9 kB / 442 MB, free: 13.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1456, allocations: 0 / 442 MB, free: 13.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.1456, allocations: 0 / 442 MB, free: 13.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.1456, allocations: 3.938 kB / 442 MB, free: 13.62 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001407/0.147, allocations: 0.6327 MB / 442.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1471, allocations: 8.031 kB / 442.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001564/0.1472, allocations: 78.53 kB / 442.7 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006365/0.1479, allocations: 83.38 kB / 442.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000815/0.1487, allocations: 382.1 kB / 443.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.1487, allocations: 24.98 kB / 443.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.1489, allocations: 47.98 kB / 443.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007998/0.1497, allocations: 472.8 kB / 443.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.1497, allocations: 11.83 kB / 443.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.1499, allocations: 12 kB / 443.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.15, allocations: 28.98 kB / 443.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/0.1506, allocations: 351.7 kB / 444.1 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.1531, allocations: 1.733 MB / 445.8 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.1534, allocations: 153.1 kB / 446 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.1535, allocations: 113.7 kB / 446.1 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1536, allocations: 4 kB / 446.1 MB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.1536, allocations: 34.56 kB / 446.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=16): time 2.254e-06/0.1536, allocations: 0 / 446.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.001619/0.1552, allocations: 0.889 MB / 447 MB, free: 8.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.1553, allocations: 81.11 kB / 447.1 MB, free: 8.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.1557, allocations: 316.5 kB / 447.4 MB, free: 7.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.1557, allocations: 33.7 kB / 447.4 MB, free: 7.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.1559, allocations: 243.5 kB / 447.6 MB, free: 7.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.156, allocations: 67.08 kB / 447.7 MB, free: 7.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.156, allocations: 4 kB / 447.7 MB, free: 7.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.1562, allocations: 342.8 kB / 448.1 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1564, allocations: 100.2 kB / 448.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1566, allocations: 201.2 kB / 448.3 MB, free: 6.797 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.1569, allocations: 132.6 kB / 448.5 MB, free: 6.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1569, allocations: 3.938 kB / 448.5 MB, free: 6.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008645/0.1577, allocations: 479.6 kB / 448.9 MB, free: 6.188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1578, allocations: 4 kB / 449 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005734/0.1584, allocations: 308.9 kB / 449.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004774/0.1588, allocations: 140.7 kB / 449.4 MB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.1591, allocations: 55.91 kB / 449.4 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.1617, allocations: 2.213 MB / 451.7 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.1619, allocations: 12 kB / 451.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.1619, allocations: 12.16 kB / 451.7 MB, free: 3.316 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.1622, allocations: 193.7 kB / 451.9 MB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.606e-05/0.1622, allocations: 31.62 kB / 451.9 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004318/0.1627, allocations: 269.3 kB / 452.2 MB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.1627, allocations: 7.984 kB / 452.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1627, allocations: 0 / 452.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1627, allocations: 0 / 452.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.1638, allocations: 0.739 MB / 452.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1639, allocations: 0 / 452.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.1641, allocations: 44.03 kB / 453 MB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.812e-05/0.1642, allocations: 36.83 kB / 453 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.1642, allocations: 4 kB / 453 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.1642, allocations: 8 kB / 453 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1642, allocations: 3.984 kB / 453 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005599/0.1648, allocations: 450.5 kB / 453.4 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.927e-05/0.1649, allocations: 104.7 kB / 453.5 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.145e-05/0.165, allocations: 8 kB / 453.6 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.1651, allocations: 8.031 kB / 453.6 MB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.1652, allocations: 15.94 kB / 453.6 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1652, allocations: 8 kB / 453.6 MB, free: 1.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.1654, allocations: 219 kB / 453.8 MB, free: 1.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1654, allocations: 0 / 453.8 MB, free: 1.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004568/0.1659, allocations: 91.94 kB / 453.9 MB, free: 0.9648 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2058/0.3716, allocations: 0.9614 MB / 454.9 MB, free: 51.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009691/0.3727, allocations: 400.7 kB / 455.2 MB, free: 51.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.3727, allocations: 2 kB / 455.2 MB, free: 51.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.3729, allocations: 186.1 kB / 455.4 MB, free: 51.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.3735, allocations: 60.02 kB / 455.5 MB, free: 51.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.3766, allocations: 2.378 MB / 457.9 MB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.3769, allocations: 0.846 MB / 458.7 MB, free: 49.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.3771, allocations: 63.02 kB / 458.8 MB, free: 49.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.3773, allocations: 120.2 kB / 458.9 MB, free: 49.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3773, allocations: 0 / 458.9 MB, free: 49.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.3968, allocations: 6.88 MB / 465.8 MB, free: 49.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/0.397, allocations: 210.1 kB / 466 MB, free: 49.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.414, allocations: 0 / 466 MB, free: 49.02 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) Environment - environmentSimulation: