Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.001984/0.001984, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003038/0.003038, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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 1.597/1.597, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.3068/0.3068, allocations: 29.41 MB / 290.5 MB, free: 2.406 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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.235e-06/2.235e-06, allocations: 0 / 368.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.112e-05/3.335e-05, allocations: 2.312 kB / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.01452/0.01456, allocations: 6.578 MB / 375.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005236/0.01979, allocations: 1.64 MB / 377.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005886/0.02038, allocations: 35.69 kB / 377.1 MB, free: 3.02 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008065/0.02119, allocations: 162.7 kB / 377.3 MB, free: 2.859 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001618/0.02281, allocations: 461.3 kB / 377.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.02404, allocations: 367.2 kB / 378.1 MB, free: 2.047 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002027/0.02607, allocations: 1.508 MB / 379.6 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004812/0.02655, allocations: 250.2 kB / 379.8 MB, free: 300 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.02813, allocations: 0.8184 MB / 380.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001152/0.02928, allocations: 0.6391 MB / 381.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.02946, allocations: 103.9 kB / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.02968, allocations: 100 kB / 381.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005426/0.03022, allocations: 447 kB / 381.9 MB, free: 14.19 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004967/0.03072, allocations: 343.3 kB / 382.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.03235, allocations: 1.235 MB / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.03236, allocations: 0 / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.03236, allocations: 0 / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.03237, allocations: 0 / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003119/0.03549, allocations: 1.384 MB / 384.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.03554, allocations: 11.98 kB / 384.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.03587, allocations: 168.4 kB / 385.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.03763, allocations: 0.6786 MB / 385.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007777/0.03841, allocations: 0.7292 MB / 386.5 MB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.03855, allocations: 64.38 kB / 386.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.04055, allocations: 0.8412 MB / 387.4 MB, free: 8.465 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.04057, allocations: 7.938 kB / 387.4 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.359e-05/0.04066, allocations: 24 kB / 387.4 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/0.04079, allocations: 41.28 kB / 387.5 MB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.04274, allocations: 0.61 MB / 388.1 MB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00606/0.0488, allocations: 3.22 MB / 391.3 MB, free: 4.473 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.05067, allocations: 0.583 MB / 391.9 MB, free: 3.863 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.05195, allocations: 404.7 kB / 392.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.651e-05/0.05203, allocations: 12.5 kB / 392.3 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.05324, allocations: 487.9 kB / 392.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.715e-06/0.05325, allocations: 0 / 392.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.01453/0.06778, allocations: 3.602 MB / 396.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.81e-05/0.06787, allocations: 97.53 kB / 396.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007314/0.06861, allocations: 0.5142 MB / 397 MB, free: 14.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.289e-05/0.0687, allocations: 45.69 kB / 397 MB, free: 14.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003987/0.0691, allocations: 395.4 kB / 397.4 MB, free: 14.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.06938, allocations: 234.1 kB / 397.6 MB, free: 13.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000304/0.06968, allocations: 151.9 kB / 397.8 MB, free: 13.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003894/0.07007, allocations: 0.582 MB / 398.4 MB, free: 13.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008336/0.0709, allocations: 311.2 kB / 398.7 MB, free: 12.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009844/0.07189, allocations: 494.4 kB / 399.1 MB, free: 12.39 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005964/0.07785, allocations: 2.248 MB / 401.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.07786, allocations: 0 / 401.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00563/0.08349, allocations: 1.659 MB / 403 MB, free: 8.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.461e-05/0.08356, allocations: 45.69 kB / 403.1 MB, free: 8.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.08357, allocations: 4 kB / 403.1 MB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004794/0.08837, allocations: 1.553 MB / 404.6 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.08895, allocations: 107.8 kB / 404.8 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/0.1011, allocations: 4.215 MB / 409 MB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007253/0.1018, allocations: 60 kB / 409 MB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.1019, allocations: 43.97 kB / 409.1 MB, free: 2.223 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000452/0.1024, allocations: 246.5 kB / 409.3 MB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.1025, allocations: 75.66 kB / 409.4 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005804/0.1083, allocations: 1.513 MB / 410.9 MB, free: 372 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.1084, allocations: 4 kB / 410.9 MB, free: 368 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1084, allocations: 4 kB / 410.9 MB, free: 364 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.1084, allocations: 3.984 kB / 410.9 MB, free: 360 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007698/0.1161, allocations: 2.42 MB / 413.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.1161, allocations: 8.094 kB / 413.3 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.1165, allocations: 75.89 kB / 413.4 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004768/0.1212, allocations: 1.557 MB / 415 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.1214, allocations: 15.98 kB / 415 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/0.1334, allocations: 4.166 MB / 419.1 MB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.1334, allocations: 4 kB / 419.2 MB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007042/0.1405, allocations: 2.001 MB / 421.2 MB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005167/0.141, allocations: 139.5 kB / 421.3 MB, free: 5.723 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.1411, allocations: 31.98 kB / 421.3 MB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/0.1417, allocations: 63.92 kB / 421.4 MB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004582/0.1422, allocations: 180.1 kB / 421.6 MB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/0.1422, allocations: 19.98 kB / 421.6 MB, free: 5.434 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004314/0.1427, allocations: 323.1 kB / 421.9 MB, free: 5.117 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1427, allocations: 0 / 421.9 MB, free: 5.117 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009239/0.1436, allocations: 224 kB / 422.1 MB, free: 4.898 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002353/0.1438, allocations: 138.6 kB / 422.2 MB, free: 4.758 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003763/0.1476, allocations: 1.254 MB / 423.5 MB, free: 3.469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1476, allocations: 384 / 423.5 MB, free: 3.469 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.1502, allocations: 0.798 MB / 424.3 MB, free: 2.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.1514, allocations: 170.8 kB / 424.5 MB, free: 2.492 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.155, allocations: 1.459 MB / 425.9 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.1556, allocations: 391.3 kB / 426.3 MB, free: 0.5625 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003665/0.1559, allocations: 92.94 kB / 426.4 MB, free: 480 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.1561, allocations: 40.5 kB / 426.4 MB, free: 440 kB / 394.7 MB Notification: Performance of SimCode: time 2.645e-06/0.1561, allocations: 4 kB / 426.4 MB, free: 436 kB / 394.7 MB Notification: Performance of Templates: time 0.02993/0.186, allocations: 15.77 MB / 442.2 MB, free: 0.7266 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=240 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.5499336660141125]