Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001212/0.001212, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0009866/0.0009866, allocations: 174 kB / 23.94 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.902/0.902, allocations: 177.1 MB / 204.2 MB, free: 5.723 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.2281/0.2281, allocations: 29.4 MB / 290.1 MB, free: 2.43 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.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.953e-05/2.112e-05, allocations: 4.109 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004072/0.004093, allocations: 4.723 MB / 434.9 MB, free: 8.852 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.006348, allocations: 2.332 MB / 437.3 MB, free: 6.508 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.006615, allocations: 19.88 kB / 437.3 MB, free: 6.488 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007752/0.00739, allocations: 425 kB / 437.7 MB, free: 6.074 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007999/0.00819, allocations: 0.5246 MB / 438.2 MB, free: 5.547 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004588/0.008648, allocations: 294.9 kB / 438.5 MB, free: 5.258 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.009238, allocations: 0.7551 MB / 439.3 MB, free: 4.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000416/0.009655, allocations: 285.7 kB / 439.5 MB, free: 4.219 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005179/0.01017, allocations: 446.6 kB / 440 MB, free: 3.781 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.01051, allocations: 307.1 kB / 440.3 MB, free: 3.48 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.001e-05/0.01055, allocations: 44 kB / 440.3 MB, free: 3.438 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006015/0.01115, allocations: 0.545 MB / 440.9 MB, free: 2.891 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.01129, allocations: 207.5 kB / 441.1 MB, free: 2.688 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.01142, allocations: 167.6 kB / 441.2 MB, free: 2.523 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006769/0.0121, allocations: 0.7945 MB / 442 MB, free: 1.727 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.0121, allocations: 3.938 kB / 442 MB, free: 1.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.0121, allocations: 4 kB / 442 MB, free: 1.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.01211, allocations: 0 / 442 MB, free: 1.719 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0007932/0.0129, allocations: 0.7155 MB / 442.7 MB, free: 0.9727 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.01294, allocations: 11.98 kB / 442.8 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.013, allocations: 78.72 kB / 442.8 MB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008153/0.01382, allocations: 208.4 kB / 443 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.01417, allocations: 312.4 kB / 443.3 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.01419, allocations: 33.36 kB / 443.4 MB, free: 312 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.01424, allocations: 44.33 kB / 443.4 MB, free: 268 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1668/0.181, allocations: 0.6196 MB / 444 MB, free: 54.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.1811, allocations: 4.344 kB / 444 MB, free: 54.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.1811, allocations: 19.2 kB / 444.1 MB, free: 54.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.1811, allocations: 36.67 kB / 444.1 MB, free: 54.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000553/0.1817, allocations: 0.603 MB / 444.7 MB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.1834, allocations: 2.073 MB / 446.8 MB, free: 53.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.1838, allocations: 376.9 kB / 447.1 MB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.1839, allocations: 214.4 kB / 447.4 MB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.184, allocations: 6.469 kB / 447.4 MB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.184, allocations: 34.56 kB / 447.4 MB, free: 52.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.184, allocations: 3.375 kB / 447.4 MB, free: 52.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.001766/0.1857, allocations: 1.555 MB / 449 MB, free: 52.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.1858, allocations: 88.39 kB / 449 MB, free: 52.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1859, allocations: 290.9 kB / 449.3 MB, free: 52.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1859, allocations: 34.25 kB / 449.4 MB, free: 51.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.359e-05/0.186, allocations: 233.8 kB / 449.6 MB, free: 51.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.1861, allocations: 159 kB / 449.7 MB, free: 51.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.091e-05/0.1861, allocations: 84.56 kB / 449.8 MB, free: 51.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.1862, allocations: 346.6 kB / 450.2 MB, free: 51.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.1863, allocations: 176.5 kB / 450.3 MB, free: 51.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.1865, allocations: 287.4 kB / 450.6 MB, free: 51.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.1868, allocations: 0.5072 MB / 451.1 MB, free: 50.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1868, allocations: 3.125 kB / 451.1 MB, free: 50.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000574/0.1874, allocations: 0.6691 MB / 451.8 MB, free: 50.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1874, allocations: 8.297 kB / 451.8 MB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1874, allocations: 6.625 kB / 451.8 MB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003004/0.1877, allocations: 173.7 kB / 452 MB, free: 50.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.1879, allocations: 98.69 kB / 452.1 MB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.1895, allocations: 2.664 MB / 454.7 MB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1897, allocations: 17.27 kB / 454.8 MB, free: 48.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.1897, allocations: 20.28 kB / 454.8 MB, free: 48.59 MB / 410.7 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 (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.1898, allocations: 191.9 kB / 455 MB, free: 48.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.1898, allocations: 44.81 kB / 455 MB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005976/0.1904, allocations: 0.6315 MB / 455.6 MB, free: 48.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1904, allocations: 10.5 kB / 455.6 MB, free: 48.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.1904, allocations: 0 / 455.6 MB, free: 48.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1904, allocations: 1.359 kB / 455.6 MB, free: 48.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1915, allocations: 1.224 MB / 456.9 MB, free: 47.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1915, allocations: 5.031 kB / 456.9 MB, free: 47.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.1916, allocations: 82.33 kB / 457 MB, free: 47.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002075/0.1918, allocations: 140.4 kB / 457.1 MB, free: 47.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1919, allocations: 20.41 kB / 457.1 MB, free: 47.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.1932, allocations: 2.436 MB / 459.6 MB, free: 45.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1932, allocations: 3.344 kB / 459.6 MB, free: 45.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/0.1939, allocations: 0.948 MB / 460.5 MB, free: 45.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.811e-05/0.1939, allocations: 43.64 kB / 460.5 MB, free: 45.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.1939, allocations: 11.06 kB / 460.6 MB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.806e-05/0.194, allocations: 13.86 kB / 460.6 MB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.194, allocations: 33.73 kB / 460.6 MB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.1941, allocations: 13.41 kB / 460.6 MB, free: 45.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.658e-05/0.1942, allocations: 202.4 kB / 460.8 MB, free: 45.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1942, allocations: 0 / 460.8 MB, free: 45.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003368/0.1945, allocations: 138 kB / 460.9 MB, free: 45.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008135/0.1953, allocations: 1.488 MB / 462.4 MB, free: 44.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006283/0.1959, allocations: 0.6572 MB / 463.1 MB, free: 43.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1959, allocations: 3.281 kB / 463.1 MB, free: 43.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.1962, allocations: 398.3 kB / 463.5 MB, free: 43.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.1965, allocations: 73.77 kB / 463.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.1995, allocations: 4.368 MB / 467.9 MB, free: 40.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.1996, allocations: 267.3 kB / 468.2 MB, free: 40.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.1997, allocations: 71.34 kB / 468.3 MB, free: 40.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.1998, allocations: 144.9 kB / 468.4 MB, free: 40.74 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1998, allocations: 0 / 468.4 MB, free: 40.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.2193, allocations: 10.56 MB / 479 MB, free: 39.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.856/8.076, allocations: 9.188 kB / 479 MB, free: 39.04 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_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_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.062435588799417] Failed to read output from testmodel.py, exit status != 0: 8.167142756283283 8.175874173 8.161991083 Calling exit ...