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.001781/0.001781, allocations: 85.12 kB / 20.68 MB, free: 0.8906 MB / 14.72 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.002214/0.002214, allocations: 168.1 kB / 23.96 MB, free: 3.91 MB / 14.72 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.515/1.515, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 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.1772/0.1772, allocations: 29.42 MB / 290.1 MB, free: 3.285 MB / 270.1 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.332e-06/1.332e-06, allocations: 0 / 430.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.402e-05, allocations: 10.22 kB / 430.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008404/0.008428, allocations: 6.216 MB / 436.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.01167, allocations: 1.621 MB / 438.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000443/0.01212, allocations: 35.69 kB / 438.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006009/0.01272, allocations: 158.7 kB / 438.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001198/0.01392, allocations: 457.3 kB / 439.2 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.01471, allocations: 367.2 kB / 439.5 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.01652, allocations: 1.515 MB / 441.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/0.01691, allocations: 242.2 kB / 441.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.01816, allocations: 0.8143 MB / 442.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009817/0.01915, allocations: 0.6235 MB / 442.7 MB, free: 5.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.01931, allocations: 100 kB / 442.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.01951, allocations: 100 kB / 442.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004594/0.01997, allocations: 442.9 kB / 443.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004375/0.02041, allocations: 335.3 kB / 443.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.02176, allocations: 1.239 MB / 444.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.02176, allocations: 4 kB / 444.9 MB, free: 3.676 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02176, allocations: 0 / 444.9 MB, free: 3.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.02177, allocations: 0 / 444.9 MB, free: 3.676 MB / 366.1 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.002834/0.02461, allocations: 1.252 MB / 446.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.02464, allocations: 8.031 kB / 446.2 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.02483, allocations: 104.4 kB / 446.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.0263, allocations: 0.672 MB / 447 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007137/0.02701, allocations: 0.7448 MB / 447.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.02715, allocations: 64.38 kB / 447.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1773/0.2044, allocations: 1.144 MB / 448.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.2045, allocations: 3.844 kB / 448.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/0.2045, allocations: 28.27 kB / 449 MB, free: 30.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.2047, allocations: 40.61 kB / 449 MB, free: 30.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.2076, allocations: 1.173 MB / 450.2 MB, free: 29.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005118/0.2127, allocations: 3.134 MB / 453.3 MB, free: 28.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/0.2154, allocations: 0.9207 MB / 454.2 MB, free: 27.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/0.2171, allocations: 0.6554 MB / 454.9 MB, free: 27.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.2172, allocations: 7.375 kB / 454.9 MB, free: 27.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001727/0.2189, allocations: 0.6824 MB / 455.6 MB, free: 27.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 3.206e-06/0.2189, allocations: 3.281 kB / 455.6 MB, free: 27.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.02157/0.2405, allocations: 5.502 MB / 461.1 MB, free: 26.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.2405, allocations: 94.33 kB / 461.2 MB, free: 26.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.241, allocations: 425.2 kB / 461.6 MB, free: 25.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.849e-05/0.2411, allocations: 39.92 kB / 461.6 MB, free: 25.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.2412, allocations: 336.9 kB / 461.9 MB, free: 25.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.2414, allocations: 212.8 kB / 462.2 MB, free: 25.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.2416, allocations: 130.8 kB / 462.3 MB, free: 25.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.2417, allocations: 372.6 kB / 462.6 MB, free: 25.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.2428, allocations: 0.5337 MB / 463.2 MB, free: 24.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.2441, allocations: 0.6635 MB / 463.8 MB, free: 24.43 MB / 366.1 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.00711/0.2512, allocations: 3.079 MB / 466.9 MB, free: 22.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.2512, allocations: 0 / 466.9 MB, free: 22.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008017/0.2592, allocations: 2.517 MB / 469.4 MB, free: 21.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.673e-05/0.2592, allocations: 47.84 kB / 469.5 MB, free: 21.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.2593, allocations: 3 kB / 469.5 MB, free: 21.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.2617, allocations: 1.088 MB / 470.6 MB, free: 21.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.2622, allocations: 106.7 kB / 470.7 MB, free: 21.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01483/0.277, allocations: 6.664 MB / 477.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008636/0.2779, allocations: 83.97 kB / 477.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.143e-05/0.278, allocations: 43.17 kB / 477.5 MB, free: 14.93 MB / 366.1 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.0004618/0.2784, allocations: 294.6 kB / 477.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.631e-05/0.2785, allocations: 55.62 kB / 477.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007917/0.2865, allocations: 2.423 MB / 480.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.2865, allocations: 4 kB / 480.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2865, allocations: 4 kB / 480.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.2865, allocations: 7.922 kB / 480.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009425/0.2959, allocations: 3.283 MB / 483.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2959, allocations: 0 / 483.5 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003683/0.2963, allocations: 83.83 kB / 483.6 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/0.2986, allocations: 1.096 MB / 484.7 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-05/0.2987, allocations: 23.92 kB / 484.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/0.3132, allocations: 6.622 MB / 491.4 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.3132, allocations: 4 kB / 491.4 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.3235, allocations: 3.188 MB / 494.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.324, allocations: 151.6 kB / 494.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.3241, allocations: 35.98 kB / 494.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000795/0.3249, allocations: 91.86 kB / 494.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004692/0.3254, allocations: 172.1 kB / 495 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.8e-05/0.3255, allocations: 23.98 kB / 495 MB, free: 13.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003744/0.3258, allocations: 291.1 kB / 495.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3258, allocations: 0 / 495.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009515/0.3268, allocations: 224 kB / 495.5 MB, free: 12.68 MB / 382.1 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.0002284/0.327, allocations: 126.8 kB / 495.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005052/0.3321, allocations: 1.703 MB / 497.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.3321, allocations: 8.062 kB / 497.3 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/0.3357, allocations: 1.071 MB / 498.4 MB, free: 9.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3367, allocations: 144.6 kB / 498.6 MB, free: 9.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.3403, allocations: 1.616 MB / 0.4885 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.3408, allocations: 399.3 kB / 0.4888 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.3411, allocations: 120.9 kB / 0.4889 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3413, allocations: 48.48 kB / 0.489 GB, free: 7.355 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3413, allocations: 0 / 0.489 GB, free: 7.355 MB / 382.1 MB Notification: Performance of Templates: time 0.02785/0.3691, allocations: 15.47 MB / 0.5041 GB, free: 7.984 MB / 398.1 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.479777093976736] Failed to read output from testmodel.py, exit status != 0: 0.3786455765366554 0.394750772 0.36958351700000003 Calling exit ...