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.0007874/0.0007874, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003413/0.003413, allocations: 157.8 kB / 24.7 MB, free: 8.891 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.8582/0.8582, allocations: 177.1 MB / 205 MB, free: 5.73 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.2453/0.2453, allocations: 29.42 MB / 290.8 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: 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 1.864e-06/1.864e-06, allocations: 0 / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.684e-05, allocations: 9.094 kB / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005709/0.005736, allocations: 6.223 MB / 437.7 MB, free: 6.848 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.007831, allocations: 1.613 MB / 439.3 MB, free: 5.23 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002646/0.008096, allocations: 35.69 kB / 439.3 MB, free: 5.195 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004655/0.008561, allocations: 158.7 kB / 439.5 MB, free: 5.039 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000627/0.009188, allocations: 469.3 kB / 440 MB, free: 4.578 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.009713, allocations: 359.3 kB / 440.3 MB, free: 4.227 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009362/0.01065, allocations: 1.523 MB / 441.8 MB, free: 2.699 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004262/0.01108, allocations: 250.2 kB / 442.1 MB, free: 2.445 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006675/0.01174, allocations: 0.8104 MB / 442.9 MB, free: 1.633 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005498/0.01229, allocations: 0.6313 MB / 443.5 MB, free: 1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.961e-05/0.01238, allocations: 100 kB / 443.6 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.01248, allocations: 103.9 kB / 443.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.01274, allocations: 446.9 kB / 444.1 MB, free: 372 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.01297, allocations: 335.3 kB / 444.5 MB, free: 36 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1936/0.2065, allocations: 1.225 MB / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2065, allocations: 3.062 kB / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2065, allocations: 0 / 445.7 MB, free: 45.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2066, allocations: 0 / 445.7 MB, free: 45.65 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.001772/0.2083, allocations: 1.255 MB / 447 MB, free: 45.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2084, allocations: 13.14 kB / 447 MB, free: 45.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.2085, allocations: 99.03 kB / 447.1 MB, free: 45.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008158/0.2093, allocations: 0.6619 MB / 447.7 MB, free: 44.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002567/0.2096, allocations: 0.7502 MB / 448.5 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.2097, allocations: 65.06 kB / 448.5 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.2109, allocations: 1.141 MB / 449.7 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.2109, allocations: 5.719 kB / 449.7 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.2109, allocations: 23.38 kB / 449.7 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.811e-05/0.211, allocations: 41.72 kB / 449.8 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.2124, allocations: 1.174 MB / 450.9 MB, free: 43.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.2151, allocations: 3.141 MB / 454.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.2163, allocations: 0.9129 MB / 455 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/0.2172, allocations: 0.649 MB / 455.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.2172, allocations: 10.97 kB / 455.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00077/0.218, allocations: 0.6821 MB / 456.3 MB, free: 41.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 1.813e-06/0.218, allocations: 0 / 456.3 MB, free: 41.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.009486/0.2275, allocations: 5.514 MB / 461.8 MB, free: 40.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2275, allocations: 90.09 kB / 461.9 MB, free: 40.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.2278, allocations: 424.3 kB / 462.3 MB, free: 40.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.2278, allocations: 44.36 kB / 462.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2279, allocations: 336 kB / 462.7 MB, free: 40.13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.228, allocations: 211.2 kB / 462.9 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.2281, allocations: 131.8 kB / 463 MB, free: 39.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.312e-05/0.2282, allocations: 367.6 kB / 463.4 MB, free: 39.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.2288, allocations: 0.5362 MB / 463.9 MB, free: 39.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.2294, allocations: 0.6633 MB / 464.6 MB, free: 39.07 MB / 410.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.003524/0.2329, allocations: 3.067 MB / 467.7 MB, free: 38.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2329, allocations: 0 / 467.7 MB, free: 38.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003737/0.2366, allocations: 2.518 MB / 470.2 MB, free: 37.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.2367, allocations: 56.05 kB / 470.2 MB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2367, allocations: 2.969 kB / 470.2 MB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.238, allocations: 1.081 MB / 471.3 MB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.2382, allocations: 113.9 kB / 471.4 MB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007976/0.2462, allocations: 6.651 MB / 478.1 MB, free: 34.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.2466, allocations: 85.97 kB / 478.2 MB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-05/0.2467, allocations: 41.98 kB / 478.2 MB, free: 34.43 MB / 410.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.000388/0.2471, allocations: 280.3 kB / 478.5 MB, free: 34.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.199e-05/0.2471, allocations: 58.3 kB / 478.5 MB, free: 34.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004572/0.2517, allocations: 2.419 MB / 481 MB, free: 33.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.2517, allocations: 5.969 kB / 481 MB, free: 33.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2517, allocations: 1.156 kB / 481 MB, free: 33.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.2517, allocations: 4.609 kB / 481 MB, free: 33.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005405/0.2571, allocations: 3.298 MB / 484.3 MB, free: 32.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2571, allocations: 2.719 kB / 484.3 MB, free: 32.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.2573, allocations: 75.53 kB / 484.4 MB, free: 32.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.2588, allocations: 1.089 MB / 485.4 MB, free: 32.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.2589, allocations: 22.45 kB / 485.5 MB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009221/0.2681, allocations: 6.635 MB / 492.1 MB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2681, allocations: 9.781 kB / 492.1 MB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005244/0.2734, allocations: 3.182 MB / 495.3 MB, free: 28.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.2736, allocations: 144 kB / 495.4 MB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.2737, allocations: 33.39 kB / 495.5 MB, free: 28.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003463/0.274, allocations: 96.34 kB / 495.6 MB, free: 28.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.2743, allocations: 176.1 kB / 495.7 MB, free: 28.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.2743, allocations: 21.78 kB / 495.7 MB, free: 28.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002555/0.2746, allocations: 285.7 kB / 496 MB, free: 28.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2746, allocations: 1.188 kB / 496 MB, free: 28.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006915/0.2753, allocations: 226.3 kB / 496.3 MB, free: 28.58 MB / 410.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.0001411/0.2754, allocations: 130.5 kB / 496.4 MB, free: 28.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002403/0.2778, allocations: 1.699 MB / 498.1 MB, free: 27.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2778, allocations: 1.406 kB / 498.1 MB, free: 27.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.2794, allocations: 1.08 MB / 499.2 MB, free: 27.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.2799, allocations: 148.9 kB / 499.3 MB, free: 27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.2817, allocations: 1.684 MB / 0.4892 GB, free: 25.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.2819, allocations: 400 kB / 0.4896 GB, free: 25.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.315e-05/0.282, allocations: 49.83 kB / 0.4897 GB, free: 25.7 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/0.282, allocations: 0 / 0.4897 GB, free: 25.7 MB / 410.7 MB Notification: Performance of Templates: time 0.008862/0.2909, allocations: 13.49 MB / 0.5028 GB, free: 13.98 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=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.876312110573053] Failed to read output from testmodel.py, exit status != 0: 0.2965833079069853 0.30291677499999997 0.09492428500000001 Calling exit ...