Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.000908/0.0009079, allocations: 86.81 kB / 16.31 MB, free: 6.449 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.001165/0.001165, allocations: 179.1 kB / 17.21 MB, free: 6.32 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.616/1.616, allocations: 205.4 MB / 223.4 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3059/0.3059, allocations: 38.05 MB / 309.7 MB, free: 8.906 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.0005118/0.0005118, allocations: 12 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1198, allocations: 56.34 MB / 433 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003603/0.1235, allocations: 3.08 MB / 436 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.125, allocations: 1.245 MB / 437.3 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.1252, allocations: 11.94 kB / 437.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.1253, allocations: 27.77 kB / 437.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004041/0.1257, allocations: 147.3 kB / 437.5 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.126, allocations: 103.8 kB / 437.6 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.1263, allocations: 322.9 kB / 437.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004473/0.1268, allocations: 246.9 kB / 438.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.1269, allocations: 95.58 kB / 438.2 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1271, allocations: 115.5 kB / 438.3 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.1271, allocations: 8 kB / 438.3 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.1273, allocations: 107.7 kB / 438.4 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.855e-05/0.1274, allocations: 51.81 kB / 438.5 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.1275, allocations: 57.64 kB / 438.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.1277, allocations: 199.5 kB / 438.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1277, allocations: 4 kB / 438.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1277, allocations: 0 / 438.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1277, allocations: 4 kB / 438.8 MB, free: 0.7383 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000584/0.1283, allocations: 470.7 kB / 439.2 MB, free: 236 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.1284, allocations: 12.03 kB / 439.2 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.606e-05/0.1284, allocations: 50.55 kB / 439.3 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005911/0.129, allocations: 79.64 kB / 439.3 MB, free: 84 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.1293, allocations: 242.7 kB / 439.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.1294, allocations: 16.33 kB / 439.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.1294, allocations: 19.91 kB / 439.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.1298, allocations: 263.9 kB / 439.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1298, allocations: 3.953 kB / 439.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.1299, allocations: 15.98 kB / 439.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.514e-05/0.1299, allocations: 8.328 kB / 439.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.1303, allocations: 224.3 kB / 440.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1318, allocations: 1.21 MB / 441.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.132, allocations: 145.1 kB / 441.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.933e-05/0.1321, allocations: 45.77 kB / 441.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.1322, allocations: 4 kB / 441.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.1322, allocations: 34.56 kB / 441.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.1322, allocations: 0 / 441.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003173/0.1325, allocations: 157.7 kB / 441.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.1326, allocations: 89.17 kB / 441.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.1328, allocations: 206.9 kB / 442 MB, free: 13.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.1328, allocations: 29.64 kB / 442 MB, free: 13.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1329, allocations: 155.9 kB / 442.2 MB, free: 13.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.133, allocations: 39.44 kB / 442.2 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/0.133, allocations: 8 kB / 442.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1331, allocations: 334.8 kB / 442.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.673e-05/0.1332, allocations: 35.98 kB / 442.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.1333, allocations: 130.2 kB / 442.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1334, allocations: 64.03 kB / 442.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1334, allocations: 0 / 442.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002901/0.1337, allocations: 209.3 kB / 443 MB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.1338, allocations: 11.91 kB / 443 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.1338, allocations: 4 kB / 443 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1338, allocations: 4 kB / 443 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.134, allocations: 51.91 kB / 443.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009223/0.135, allocations: 1.325 MB / 444.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.868e-05/0.1351, allocations: 19.78 kB / 444.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.1351, allocations: 12 kB / 444.4 MB, free: 10.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.1352, allocations: 141.7 kB / 444.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.1353, allocations: 15.81 kB / 444.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/0.1355, allocations: 151 kB / 444.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1355, allocations: 7.984 kB / 444.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.1356, allocations: 0 / 444.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1356, allocations: 0 / 444.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006194/0.1362, allocations: 0.4921 MB / 445.2 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1362, allocations: 0 / 445.2 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1364, allocations: 27.98 kB / 445.2 MB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1364, allocations: 4.062 kB / 445.2 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.1364, allocations: 8 kB / 445.3 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.1375, allocations: 1.325 MB / 446.6 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.1375, allocations: 12.05 kB / 446.6 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.1378, allocations: 293.8 kB / 446.9 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.596e-05/0.1379, allocations: 96.94 kB / 447 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.1379, allocations: 0 / 447 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.512e-05/0.138, allocations: 12.06 kB / 447 MB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.1381, allocations: 12.03 kB / 447 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.1381, allocations: 7.938 kB / 447 MB, free: 7.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001178/0.1382, allocations: 148.4 kB / 447.1 MB, free: 7.602 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1382, allocations: 0 / 447.1 MB, free: 7.602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003456/0.1386, allocations: 55.83 kB / 447.2 MB, free: 7.547 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * 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): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006895/0.1393, allocations: 0.828 MB / 448 MB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.1396, allocations: 128.4 kB / 448.2 MB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1396, allocations: 4.062 kB / 448.2 MB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1397, allocations: 59.91 kB / 448.2 MB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.1401, allocations: 31.89 kB / 448.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.1421, allocations: 1.319 MB / 449.6 MB, free: 5.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.1426, allocations: 0.744 MB / 450.3 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.855e-05/0.1427, allocations: 33.52 kB / 450.3 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.175e-05/0.1427, allocations: 55.41 kB / 450.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1428, allocations: 0 / 450.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.1588, allocations: 3.409 MB / 453.8 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/0.1591, allocations: 204.2 kB / 454 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.912, allocations: 0 / 454 MB, free: 0.5469 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) Environment - environmentSimulation: