Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.0008799/0.0008799, 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.001442/0.001442, allocations: 174 kB / 23.95 MB, free: 0.6133 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.9165/0.9165, allocations: 177.1 MB / 204.2 MB, free: 5.719 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.2217/0.2217, allocations: 29.4 MB / 290.1 MB, free: 2.449 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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.589e-05, allocations: 4.109 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004202/0.004218, allocations: 4.428 MB / 434.6 MB, free: 9.141 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.00582, allocations: 1.409 MB / 436.1 MB, free: 7.727 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.006025, allocations: 19.81 kB / 436.1 MB, free: 7.707 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003736/0.006399, allocations: 111.2 kB / 436.2 MB, free: 7.598 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005318/0.006931, allocations: 286 kB / 436.5 MB, free: 7.316 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.00717, allocations: 115.8 kB / 436.6 MB, free: 7.203 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005908/0.00776, allocations: 0.5096 MB / 437.1 MB, free: 6.691 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.007936, allocations: 112.5 kB / 437.2 MB, free: 6.578 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.008244, allocations: 287.2 kB / 437.5 MB, free: 6.297 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.008445, allocations: 175.5 kB / 437.6 MB, free: 6.125 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.008476, allocations: 28 kB / 437.7 MB, free: 6.098 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.728e-05/0.008534, allocations: 24 kB / 437.7 MB, free: 6.074 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.008637, allocations: 111.6 kB / 437.8 MB, free: 5.965 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.008735, allocations: 119.7 kB / 437.9 MB, free: 5.848 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.009046, allocations: 382.6 kB / 438.3 MB, free: 5.473 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.009049, allocations: 0 / 438.3 MB, free: 5.473 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.00905, allocations: 0 / 438.3 MB, free: 5.473 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.009055, allocations: 3.938 kB / 438.3 MB, free: 5.469 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008606/0.009916, allocations: 0.5994 MB / 438.9 MB, free: 4.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.009971, allocations: 11.98 kB / 438.9 MB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.43e-05/0.01003, allocations: 62.67 kB / 439 MB, free: 4.758 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.082e-05/0.01011, allocations: 44.69 kB / 439 MB, free: 4.715 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005434/0.01065, allocations: 332.8 kB / 439.3 MB, free: 4.363 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.01068, allocations: 25.03 kB / 439.4 MB, free: 4.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.01073, allocations: 32.08 kB / 439.4 MB, free: 4.309 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004103/0.01114, allocations: 339.5 kB / 439.7 MB, free: 3.941 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.01116, allocations: 0 / 439.7 MB, free: 3.941 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.01118, allocations: 12 kB / 439.7 MB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.964e-06/0.01119, allocations: 8 kB / 439.7 MB, free: 3.922 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.01143, allocations: 201.8 kB / 439.9 MB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.0126, allocations: 1.39 MB / 441.3 MB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.01289, allocations: 186.3 kB / 441.5 MB, free: 2.027 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.811e-05/0.01297, allocations: 79.47 kB / 441.6 MB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.01299, allocations: 7.938 kB / 441.6 MB, free: 1.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.01302, allocations: 38.56 kB / 441.6 MB, free: 1.883 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.01302, allocations: 0 / 441.6 MB, free: 1.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.000885/0.0139, allocations: 0.6162 MB / 442.3 MB, free: 1.234 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.855e-05/0.01397, allocations: 140.5 kB / 442.4 MB, free: 1.066 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.01421, allocations: 325.6 kB / 442.7 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.01422, allocations: 25.7 kB / 442.7 MB, free: 0.707 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.01433, allocations: 216.1 kB / 442.9 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.01437, allocations: 75.42 kB / 443 MB, free: 428 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.01443, allocations: 49.66 kB / 443.1 MB, free: 372 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.273e-05/0.01452, allocations: 338.8 kB / 443.4 MB, free: 24 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1762/0.1907, allocations: 51.78 kB / 443.5 MB, free: 54.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.1909, allocations: 142.6 kB / 443.6 MB, free: 54.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.1911, allocations: 222.3 kB / 443.8 MB, free: 54.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1911, allocations: 3.344 kB / 443.8 MB, free: 54.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002947/0.1914, allocations: 255 kB / 444.1 MB, free: 54.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1914, allocations: 10.92 kB / 444.1 MB, free: 54.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1914, allocations: 4.594 kB / 444.1 MB, free: 54.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.1914, allocations: 6.375 kB / 444.1 MB, free: 54.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1917, allocations: 84.28 kB / 444.2 MB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005153/0.1922, allocations: 1.27 MB / 445.4 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.1923, allocations: 11.16 kB / 445.4 MB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.1923, allocations: 17.08 kB / 445.5 MB, free: 52.8 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 (31): * Single equations (assignments): 30 * 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 0.0001505/0.1925, allocations: 158.8 kB / 445.6 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.158e-05/0.1925, allocations: 32.97 kB / 445.6 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002233/0.1928, allocations: 192.4 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1928, allocations: 6.406 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.1928, allocations: 0 / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1928, allocations: 4.312 kB / 445.8 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005877/0.1934, allocations: 0.4957 MB / 446.3 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1934, allocations: 2.875 kB / 446.3 MB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.1936, allocations: 45.77 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.1936, allocations: 3.031 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.1936, allocations: 5.688 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1936, allocations: 1.531 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1936, allocations: 3 kB / 446.4 MB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.1939, allocations: 0.4943 MB / 446.9 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.194, allocations: 33.19 kB / 446.9 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.194, allocations: 10.58 kB / 446.9 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1941, allocations: 3.188 kB / 446.9 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.1942, allocations: 16.72 kB / 447 MB, free: 52.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.1942, allocations: 6.5 kB / 447 MB, free: 52.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.1943, allocations: 217.7 kB / 447.2 MB, free: 51.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1943, allocations: 0 / 447.2 MB, free: 51.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003024/0.1946, allocations: 62.53 kB / 447.2 MB, free: 51.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003895/0.195, allocations: 1.03 MB / 448.3 MB, free: 50.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.1953, allocations: 148.9 kB / 448.4 MB, free: 50.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1953, allocations: 0 / 448.4 MB, free: 50.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.494e-05/0.1953, allocations: 68.38 kB / 448.5 MB, free: 50.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.1958, allocations: 96.06 kB / 448.6 MB, free: 50.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.1982, allocations: 3.172 MB / 451.7 MB, free: 48.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.1983, allocations: 198.8 kB / 451.9 MB, free: 48.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1985, allocations: 47.02 kB / 452 MB, free: 48.61 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1986, allocations: 120.4 kB / 452.1 MB, free: 48.53 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1986, allocations: 0 / 452.1 MB, free: 48.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.2218, allocations: 7.706 MB / 459.8 MB, free: 47.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/7.048, allocations: 9.875 kB / 459.8 MB, free: 47.11 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_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_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.03629058226943] Failed to read output from testmodel.py, exit status != 0: 7.132335567846894 7.138998295 7.128568408 Calling exit ...