Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",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.00117/0.00117, allocations: 107.8 kB / 16.62 MB, free: 6.812 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.001425/0.001425, allocations: 190 kB / 17.55 MB, free: 5.934 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.344/1.344, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1719/0.1719, allocations: 38.02 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.001421, allocations: 64.31 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1109, allocations: 58.06 MB / 456.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.006882/0.1178, allocations: 5.24 MB / 461.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.1205, allocations: 1.484 MB / 463.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.121, allocations: 27.81 kB / 463.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.1223, allocations: 386.2 kB / 463.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006661/0.1229, allocations: 223 kB / 463.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005061/0.1235, allocations: 151.8 kB / 463.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.1242, allocations: 0.5646 MB / 464.5 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005788/0.1248, allocations: 313.2 kB / 464.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004775/0.1253, allocations: 251 kB / 465.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/0.1258, allocations: 295 kB / 465.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.952e-05/0.1259, allocations: 32 kB / 465.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003164/0.1262, allocations: 131.8 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002374/0.1265, allocations: 191.5 kB / 465.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004003/0.1269, allocations: 226.9 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000831/0.1277, allocations: 0.5061 MB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1278, allocations: 0 / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.1278, allocations: 4 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.102e-05/0.1278, allocations: 0 / 466.4 MB, free: 14.3 MB / 350.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.00173/0.1295, allocations: 0.7058 MB / 467.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.1296, allocations: 15.83 kB / 467.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1297, allocations: 74.72 kB / 467.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000674/0.1304, allocations: 88.31 kB / 467.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006319/0.1311, allocations: 375.4 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.1311, allocations: 33.36 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1312, allocations: 47.86 kB / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000704/0.1319, allocations: 472.8 kB / 468.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.132, allocations: 7.938 kB / 468.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.132, allocations: 16 kB / 468.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.1321, allocations: 28.97 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.1327, allocations: 335.7 kB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.1348, allocations: 1.71 MB / 470.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.1351, allocations: 153.1 kB / 470.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1353, allocations: 108.6 kB / 470.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.1353, allocations: 7.938 kB / 470.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1353, allocations: 34.56 kB / 470.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1353, allocations: 0 / 470.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001409/0.1367, allocations: 0.8565 MB / 471.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.1368, allocations: 77.11 kB / 471.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.1371, allocations: 300.5 kB / 471.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1371, allocations: 29.7 kB / 471.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.1373, allocations: 255.4 kB / 472.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.099e-05/0.1373, allocations: 71.02 kB / 472.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.751e-05/0.1374, allocations: 58.11 kB / 472.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1376, allocations: 346.7 kB / 472.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.1377, allocations: 88.23 kB / 472.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.1379, allocations: 201.3 kB / 472.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.1383, allocations: 314.7 kB / 473.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1383, allocations: 3.938 kB / 473.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008043/0.1391, allocations: 456.5 kB / 473.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1392, allocations: 10.19 kB / 473.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005371/0.1397, allocations: 288.5 kB / 473.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/0.1402, allocations: 128.8 kB / 474 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.1404, allocations: 59.91 kB / 474.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/0.143, allocations: 2.38 MB / 476.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.1431, allocations: 11.98 kB / 476.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.1432, allocations: 12 kB / 476.5 MB, free: 3.582 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001903/0.1434, allocations: 189.7 kB / 476.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.461e-05/0.1434, allocations: 31.62 kB / 476.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003912/0.1438, allocations: 249.3 kB / 476.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1438, allocations: 4 kB / 476.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.1439, allocations: 3.938 kB / 476.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1439, allocations: 0 / 476.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.1449, allocations: 0.7234 MB / 477.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1449, allocations: 0 / 477.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.1451, allocations: 39.92 kB / 477.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-05/0.1452, allocations: 28.83 kB / 477.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1453, allocations: 12.06 kB / 477.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.1464, allocations: 1.588 MB / 479.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1464, allocations: 3.984 kB / 479.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004801/0.1469, allocations: 422.4 kB / 479.8 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-05/0.147, allocations: 108.7 kB / 479.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.147, allocations: 7.938 kB / 479.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.1472, allocations: 4 kB / 479.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.1472, allocations: 19.98 kB / 479.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.1472, allocations: 7.984 kB / 479.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001921/0.1474, allocations: 219 kB / 480.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1475, allocations: 0 / 480.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004503/0.1479, allocations: 88 kB / 480.2 MB, free: 15.59 MB / 366.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007834/0.1487, allocations: 0.9632 MB / 481.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006852/0.1494, allocations: 410.5 kB / 481.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1494, allocations: 0 / 481.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000327/0.1497, allocations: 232.2 kB / 481.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.1502, allocations: 72.19 kB / 481.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00452/0.1548, allocations: 3.652 MB / 485.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.1553, allocations: 0.8419 MB / 486.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002043/0.1555, allocations: 58.92 kB / 486.4 MB, free: 9.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.1557, allocations: 127.4 kB / 486.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1557, allocations: 0 / 486.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.179, allocations: 7.244 MB / 493.8 MB, free: 1.875 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.1792, allocations: 223.5 kB / 494 MB, free: 1.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.225, allocations: 7.875 kB / 494 MB, free: 1.613 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1)