Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.00116/0.00116, 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.001405/0.001405, allocations: 174.3 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.9048/0.9048, allocations: 177.1 MB / 204.3 MB, free: 5.734 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.2316/0.2316, allocations: 29.41 MB / 290.1 MB, free: 2.441 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.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.267e-05, allocations: 6.219 kB / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006654/0.006677, allocations: 5.035 MB / 435.2 MB, free: 8.543 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.00931, allocations: 2.009 MB / 437.3 MB, free: 6.527 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003676/0.009678, allocations: 19.81 kB / 437.3 MB, free: 6.508 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004959/0.01017, allocations: 146.8 kB / 437.4 MB, free: 6.363 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009233/0.0111, allocations: 409.4 kB / 437.8 MB, free: 5.961 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.01159, allocations: 215.5 kB / 438 MB, free: 5.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009501/0.01254, allocations: 0.7431 MB / 438.8 MB, free: 5.004 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000428/0.01296, allocations: 323.9 kB / 439.1 MB, free: 4.68 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005678/0.01353, allocations: 434.8 kB / 439.5 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.0139, allocations: 243.2 kB / 439.7 MB, free: 4.016 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.284e-05/0.01396, allocations: 48 kB / 439.8 MB, free: 3.969 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.01421, allocations: 135.9 kB / 439.9 MB, free: 3.836 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.01433, allocations: 159.5 kB / 440.1 MB, free: 3.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.01448, allocations: 183.5 kB / 440.3 MB, free: 3.5 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007552/0.01524, allocations: 0.7087 MB / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.01524, allocations: 0 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01525, allocations: 0 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.01526, allocations: 0 / 441 MB, free: 2.789 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001293/0.01655, allocations: 0.8057 MB / 441.8 MB, free: 1.949 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.0166, allocations: 11.98 kB / 441.8 MB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.665e-05/0.01667, allocations: 70.72 kB / 441.9 MB, free: 1.859 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.637e-05/0.01677, allocations: 60.56 kB / 441.9 MB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.01735, allocations: 427.2 kB / 442.3 MB, free: 1.355 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.01737, allocations: 32.94 kB / 442.4 MB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/0.01742, allocations: 36 kB / 442.4 MB, free: 1.289 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.01791, allocations: 482.8 kB / 442.9 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.01793, allocations: 7.938 kB / 442.9 MB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.01796, allocations: 16 kB / 442.9 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.01796, allocations: 8 kB / 442.9 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003186/0.01828, allocations: 278.3 kB / 443.2 MB, free: 476 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1737/0.192, allocations: 1.692 MB / 444.9 MB, free: 53.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.1925, allocations: 236.4 kB / 445.1 MB, free: 53.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1926, allocations: 95.62 kB / 445.2 MB, free: 53.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.1926, allocations: 3.188 kB / 445.2 MB, free: 53.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.1929, allocations: 172.4 kB / 445.4 MB, free: 53.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.824e-06/0.1929, allocations: 0 / 445.4 MB, free: 53.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.001229/0.1941, allocations: 0.8605 MB / 446.2 MB, free: 52.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.1942, allocations: 133.8 kB / 446.4 MB, free: 52.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.1945, allocations: 421 kB / 446.8 MB, free: 52.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1945, allocations: 32.98 kB / 446.8 MB, free: 52.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1946, allocations: 276.5 kB / 447.1 MB, free: 52.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.1946, allocations: 91.44 kB / 447.2 MB, free: 52.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-05/0.1947, allocations: 71.91 kB / 447.2 MB, free: 52.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.1948, allocations: 350.5 kB / 447.6 MB, free: 51.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.1949, allocations: 85.95 kB / 447.7 MB, free: 51.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.195, allocations: 233.8 kB / 447.9 MB, free: 51.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.1953, allocations: 315.7 kB / 448.2 MB, free: 51.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1953, allocations: 3 kB / 448.2 MB, free: 51.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005718/0.1959, allocations: 440.8 kB / 448.6 MB, free: 51.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.1959, allocations: 12 kB / 448.6 MB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1959, allocations: 3.281 kB / 448.6 MB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002875/0.1962, allocations: 97.64 kB / 448.7 MB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.1964, allocations: 69.5 kB / 448.8 MB, free: 51.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.1976, allocations: 1.888 MB / 450.7 MB, free: 49.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.1978, allocations: 19.28 kB / 450.7 MB, free: 49.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.1978, allocations: 16.34 kB / 450.7 MB, free: 49.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0001662/0.198, allocations: 202.4 kB / 450.9 MB, free: 49.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.198, allocations: 42.47 kB / 451 MB, free: 49.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003704/0.1984, allocations: 294.3 kB / 451.3 MB, free: 49.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1984, allocations: 10.25 kB / 451.3 MB, free: 49.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1984, allocations: 3.219 kB / 451.3 MB, free: 49.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1984, allocations: 7.219 kB / 451.3 MB, free: 49.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006155/0.199, allocations: 0.7042 MB / 452 MB, free: 48.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.199, allocations: 0 / 452 MB, free: 48.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.1992, allocations: 44.02 kB / 452 MB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.1993, allocations: 49.16 kB / 452.1 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.1993, allocations: 13.64 kB / 452.1 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007334/0.2, allocations: 1.428 MB / 453.5 MB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2, allocations: 0 / 453.5 MB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.2004, allocations: 0.4995 MB / 454 MB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.281e-05/0.2005, allocations: 61.52 kB / 454.1 MB, free: 47.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.2006, allocations: 7.938 kB / 454.1 MB, free: 47.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.2007, allocations: 18.2 kB / 454.1 MB, free: 47.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.2007, allocations: 23.58 kB / 454.1 MB, free: 47.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.2007, allocations: 7.062 kB / 454.1 MB, free: 47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001853/0.2009, allocations: 290.2 kB / 454.4 MB, free: 46.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2009, allocations: 0 / 454.4 MB, free: 46.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003719/0.2013, allocations: 125.8 kB / 454.5 MB, free: 46.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/0.2025, allocations: 1.417 MB / 455.9 MB, free: 45.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005412/0.203, allocations: 406.4 kB / 456.3 MB, free: 45.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.203, allocations: 0 / 456.3 MB, free: 45.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.2032, allocations: 233.3 kB / 456.6 MB, free: 45.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.2036, allocations: 132.7 kB / 456.7 MB, free: 45.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.2067, allocations: 3.978 MB / 460.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.2069, allocations: 255.1 kB / 460.9 MB, free: 42.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001608/0.207, allocations: 64.88 kB / 461 MB, free: 42.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.2072, allocations: 164.5 kB / 461.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of SimCode: time 8.31e-07/0.2072, allocations: 0 / 461.2 MB, free: 42.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.2327, allocations: 12.63 MB / 473.8 MB, free: 40.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.298/8.531, allocations: 11.02 kB / 473.8 MB, free: 40.5 MB / 410.7 MB " [Timeout remaining time 651] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.541669101454318] Failed to read output from testmodel.py, exit status != 0: 8.640432911925018 8.649084144 8.632032608 Calling exit ...