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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007632/0.0007632, allocations: 79.7 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008845/0.0008845, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.886/0.886, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2272/0.2272, allocations: 29.4 MB / 290.1 MB, free: 2.438 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.562e-06/1.562e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.228e-05, allocations: 3.828 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003435/0.003457, allocations: 3.312 MB / 433.5 MB, free: 10.28 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.004746, allocations: 1.173 MB / 434.7 MB, free: 9.102 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.004879, allocations: 7.938 kB / 434.7 MB, free: 9.094 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004845/0.005364, allocations: 159.2 kB / 434.9 MB, free: 8.938 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003384/0.005702, allocations: 183 kB / 435 MB, free: 8.758 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.005937, allocations: 131.5 kB / 435.2 MB, free: 8.629 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.006221, allocations: 294.8 kB / 435.4 MB, free: 8.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.006458, allocations: 114.2 kB / 435.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.006709, allocations: 179.5 kB / 435.7 MB, free: 8.055 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.006849, allocations: 99.67 kB / 435.8 MB, free: 7.957 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.006867, allocations: 12 kB / 435.8 MB, free: 7.945 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002304/0.007098, allocations: 195.3 kB / 436 MB, free: 7.754 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.23e-05/0.00716, allocations: 59.8 kB / 436.1 MB, free: 7.695 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.603e-05/0.007226, allocations: 71.78 kB / 436.2 MB, free: 7.625 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.007575, allocations: 299.1 kB / 436.5 MB, free: 7.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.007578, allocations: 4 kB / 436.5 MB, free: 7.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.00758, allocations: 0 / 436.5 MB, free: 7.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.007586, allocations: 3.938 kB / 436.5 MB, free: 7.324 MB / 410.7 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.0005272/0.008113, allocations: 429.3 kB / 436.9 MB, free: 6.875 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.008151, allocations: 11.98 kB / 436.9 MB, free: 6.863 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.008195, allocations: 54.73 kB / 436.9 MB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000434/0.008629, allocations: 80.7 kB / 437 MB, free: 6.723 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.008889, allocations: 201.4 kB / 437.2 MB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.008903, allocations: 8.703 kB / 437.2 MB, free: 6.492 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.008937, allocations: 20.33 kB / 437.3 MB, free: 6.473 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.009249, allocations: 272.5 kB / 437.5 MB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.009261, allocations: 192 / 437.5 MB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.009282, allocations: 15.92 kB / 437.5 MB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.009304, allocations: 8.328 kB / 437.5 MB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.009543, allocations: 224.3 kB / 437.8 MB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.01056, allocations: 1.103 MB / 438.9 MB, free: 4.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.01072, allocations: 129.2 kB / 439 MB, free: 4.605 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.01077, allocations: 45.77 kB / 439 MB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.01078, allocations: 0 / 439 MB, free: 4.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.0108, allocations: 34.56 kB / 439.1 MB, free: 4.512 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.0108, allocations: 0 / 439.1 MB, free: 4.512 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002579/0.01106, allocations: 169.4 kB / 439.2 MB, free: 4.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.01111, allocations: 81.11 kB / 439.3 MB, free: 4.242 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.01125, allocations: 210.9 kB / 439.5 MB, free: 4.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.01127, allocations: 33.7 kB / 439.6 MB, free: 3.984 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.01134, allocations: 152.2 kB / 439.7 MB, free: 3.832 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.01137, allocations: 55.56 kB / 439.8 MB, free: 3.777 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.01141, allocations: 37.7 kB / 439.8 MB, free: 3.734 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.295e-05/0.0115, allocations: 326.8 kB / 440.1 MB, free: 3.406 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.459e-05/0.01155, allocations: 43.97 kB / 440.2 MB, free: 3.363 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.364e-05/0.01164, allocations: 129.3 kB / 440.3 MB, free: 3.203 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.01179, allocations: 182.7 kB / 440.5 MB, free: 2.988 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01179, allocations: 0 / 440.5 MB, free: 2.988 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001918/0.01198, allocations: 209.2 kB / 440.7 MB, free: 2.777 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.012, allocations: 7.984 kB / 440.7 MB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.012, allocations: 4 kB / 440.7 MB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.01202, allocations: 7.938 kB / 440.7 MB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.01218, allocations: 47.97 kB / 440.7 MB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006573/0.01283, allocations: 1.324 MB / 442.1 MB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.027e-05/0.0129, allocations: 19.92 kB / 442.1 MB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.01292, allocations: 12 kB / 442.1 MB, free: 1.242 MB / 410.7 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 (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 {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.179e-05/0.01301, allocations: 141.8 kB / 442.2 MB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.01303, allocations: 23.8 kB / 442.2 MB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001556/0.01319, allocations: 147 kB / 442.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01319, allocations: 0 / 442.4 MB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.01319, allocations: 4.156 kB / 442.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.0132, allocations: 0 / 442.4 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.01361, allocations: 467 kB / 442.8 MB, free: 412 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.01361, allocations: 0 / 442.8 MB, free: 412 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.919e-05/0.0137, allocations: 31.98 kB / 442.9 MB, free: 380 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.0137, allocations: 0 / 442.9 MB, free: 380 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.01371, allocations: 4 kB / 442.9 MB, free: 376 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1627/0.1764, allocations: 1.305 MB / 444.2 MB, free: 49.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1764, allocations: 0 / 444.2 MB, free: 49.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.1766, allocations: 305.9 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.104e-05/0.1766, allocations: 21.95 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.1766, allocations: 2.312 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.57e-05/0.1767, allocations: 4.656 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.253e-05/0.1767, allocations: 14.98 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.1767, allocations: 8.406 kB / 444.5 MB, free: 49.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.075e-05/0.1768, allocations: 147.7 kB / 444.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1768, allocations: 2.906 kB / 444.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002499/0.1771, allocations: 50.17 kB / 444.7 MB, free: 49.48 MB / 410.7 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 (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 {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002905/0.1774, allocations: 0.831 MB / 445.6 MB, free: 48.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.1776, allocations: 128 kB / 445.7 MB, free: 48.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1776, allocations: 3.75 kB / 445.7 MB, free: 48.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.153e-05/0.1777, allocations: 53.38 kB / 445.7 MB, free: 48.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1779, allocations: 45.14 kB / 445.8 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.1794, allocations: 2.293 MB / 448.1 MB, free: 47.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.187e-05/0.1795, allocations: 133.5 kB / 448.2 MB, free: 47.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.148e-05/0.1795, allocations: 34.25 kB / 448.2 MB, free: 47.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.111e-05/0.1796, allocations: 58.73 kB / 448.3 MB, free: 47.23 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1796, allocations: 0 / 448.3 MB, free: 47.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.1982, allocations: 4.467 MB / 452.8 MB, free: 46.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.007, allocations: 6.984 kB / 452.8 MB, free: 46.15 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.928533770143986] Failed to read output from testmodel.py, exit status != 0: 8.095660924911499 8.106917777 8.096631579 Calling exit ...