Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.0007895/0.0007895, allocations: 79.69 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.0007583/0.0007583, allocations: 170 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.9287/0.9287, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2377/0.2377, allocations: 29.41 MB / 290.1 MB, free: 2.453 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.109e-06/5.109e-06, allocations: 4 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.516e-05/4.027e-05, allocations: 6.781 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.006407/0.006448, allocations: 5.042 MB / 435.3 MB, free: 8.543 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.009398, allocations: 1.994 MB / 437.2 MB, free: 6.543 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003943/0.009792, allocations: 23.81 kB / 437.3 MB, free: 6.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006162/0.01041, allocations: 146.8 kB / 437.4 MB, free: 6.375 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.0115, allocations: 413.3 kB / 437.8 MB, free: 5.969 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.01203, allocations: 218.7 kB / 438 MB, free: 5.758 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.01315, allocations: 0.7354 MB / 438.8 MB, free: 5.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006072/0.01375, allocations: 327.8 kB / 439.1 MB, free: 4.691 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.0148, allocations: 438.8 kB / 439.5 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.01515, allocations: 243.3 kB / 439.8 MB, free: 4.023 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.0152, allocations: 48 kB / 439.8 MB, free: 3.977 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/0.01545, allocations: 139.8 kB / 439.9 MB, free: 3.84 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.01556, allocations: 151.5 kB / 440.1 MB, free: 3.691 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.0157, allocations: 191.5 kB / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006837/0.01638, allocations: 0.701 MB / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.01639, allocations: 0 / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.01639, allocations: 0 / 441 MB, free: 2.801 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.0164, allocations: 0 / 441 MB, free: 2.801 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.001303/0.0177, allocations: 0.8096 MB / 441.8 MB, free: 1.957 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.01776, allocations: 11.98 kB / 441.8 MB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.555e-05/0.01785, allocations: 74.7 kB / 441.9 MB, free: 1.863 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.01795, allocations: 64.56 kB / 441.9 MB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006222/0.01857, allocations: 419.2 kB / 442.3 MB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.0186, allocations: 32.94 kB / 442.4 MB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.01866, allocations: 36 kB / 442.4 MB, free: 1.297 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.01921, allocations: 482.8 kB / 442.9 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.01923, allocations: 3.984 kB / 442.9 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.01927, allocations: 20 kB / 442.9 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.01928, allocations: 8 kB / 442.9 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.01961, allocations: 274.3 kB / 443.2 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.183/0.2026, allocations: 1.699 MB / 444.9 MB, free: 53.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004269/0.203, allocations: 238.8 kB / 445.1 MB, free: 53.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.274e-05/0.2031, allocations: 82.3 kB / 445.2 MB, free: 53.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.774e-05/0.2032, allocations: 3.469 kB / 445.2 MB, free: 53.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.2034, allocations: 177.2 kB / 445.4 MB, free: 53.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.316e-06/0.2034, allocations: 4.906 kB / 445.4 MB, free: 53.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.001223/0.2046, allocations: 0.8577 MB / 446.2 MB, free: 52.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.2047, allocations: 132.3 kB / 446.4 MB, free: 52.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.205, allocations: 418.7 kB / 446.8 MB, free: 52.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.205, allocations: 33.12 kB / 446.8 MB, free: 52.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.2051, allocations: 273 kB / 447.1 MB, free: 52.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.2051, allocations: 100.6 kB / 447.2 MB, free: 52.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.081e-05/0.2052, allocations: 65.2 kB / 447.2 MB, free: 52.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.116e-05/0.2053, allocations: 353.4 kB / 447.6 MB, free: 51.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.2054, allocations: 83.58 kB / 447.7 MB, free: 51.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.2055, allocations: 248.3 kB / 447.9 MB, free: 51.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.2057, allocations: 314.7 kB / 448.2 MB, free: 51.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2057, allocations: 0 / 448.2 MB, free: 51.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004703/0.2062, allocations: 435.8 kB / 448.6 MB, free: 51.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2062, allocations: 12.03 kB / 448.6 MB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2062, allocations: 3.219 kB / 448.6 MB, free: 51.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.2065, allocations: 94.45 kB / 448.7 MB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2066, allocations: 65.25 kB / 448.8 MB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.2079, allocations: 1.888 MB / 450.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.208, allocations: 26.47 kB / 450.7 MB, free: 49.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.2081, allocations: 19.19 kB / 450.7 MB, free: 49.47 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.0001333/0.2082, allocations: 186.8 kB / 450.9 MB, free: 49.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.2082, allocations: 49.2 kB / 451 MB, free: 49.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003393/0.2086, allocations: 306.4 kB / 451.3 MB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2086, allocations: 3.188 kB / 451.3 MB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2086, allocations: 0 / 451.3 MB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2086, allocations: 0 / 451.3 MB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000584/0.2092, allocations: 0.7099 MB / 452 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2092, allocations: 0 / 452 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.2093, allocations: 48.84 kB / 452 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/0.2094, allocations: 49.08 kB / 452.1 MB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2094, allocations: 7.219 kB / 452.1 MB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005801/0.21, allocations: 1.436 MB / 453.5 MB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.21, allocations: 3.125 kB / 453.5 MB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003895/0.2104, allocations: 0.4959 MB / 454 MB, free: 47.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.2105, allocations: 57.84 kB / 454.1 MB, free: 47.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.2105, allocations: 7.25 kB / 454.1 MB, free: 47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.2106, allocations: 16.36 kB / 454.1 MB, free: 47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.2107, allocations: 28.33 kB / 454.1 MB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2107, allocations: 9.625 kB / 454.1 MB, free: 46.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001746/0.2108, allocations: 287.8 kB / 454.4 MB, free: 46.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2108, allocations: 2.188 kB / 454.4 MB, free: 46.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003632/0.2112, allocations: 121.5 kB / 454.5 MB, free: 46.83 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.001207/0.2124, allocations: 1.425 MB / 456 MB, free: 45.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005144/0.2129, allocations: 398.8 kB / 456.3 MB, free: 45.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2129, allocations: 3.938 kB / 456.3 MB, free: 45.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.2131, allocations: 235.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.000408/0.2135, allocations: 132.4 kB / 456.7 MB, free: 45.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.2165, allocations: 3.976 MB / 460.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.2167, allocations: 256.4 kB / 460.9 MB, free: 42.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.2168, allocations: 60.47 kB / 461 MB, free: 42.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.217, allocations: 163.1 kB / 461.2 MB, free: 42.8 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.217, allocations: 0 / 461.2 MB, free: 42.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.2483, allocations: 12.64 MB / 473.8 MB, free: 40.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.175/8.423, allocations: 8 kB / 473.8 MB, free: 40.49 MB / 410.7 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.502952945418656] Failed to read output from testmodel.py, exit status != 0: 8.538710257969797 8.548783061 8.529863592 Calling exit ...