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.0007935/0.0007935, 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.0008586/0.0008586, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8526/0.8526, allocations: 177.1 MB / 204.3 MB, free: 5.75 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.2103/0.2103, allocations: 29.41 MB / 290.1 MB, free: 2.434 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.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.548e-05, allocations: 2.844 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005297/0.005312, allocations: 6.222 MB / 436.4 MB, free: 7.348 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.007494, allocations: 1.621 MB / 438 MB, free: 5.723 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000306/0.0078, allocations: 35.69 kB / 438.1 MB, free: 5.688 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004415/0.008242, allocations: 166.7 kB / 438.2 MB, free: 5.523 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009231/0.009165, allocations: 457.4 kB / 438.7 MB, free: 5.074 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.009606, allocations: 375.2 kB / 439.1 MB, free: 4.707 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008837/0.01049, allocations: 1.515 MB / 440.6 MB, free: 3.188 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.01075, allocations: 246.2 kB / 440.8 MB, free: 2.938 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006444/0.01139, allocations: 0.8143 MB / 441.6 MB, free: 2.121 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000527/0.01192, allocations: 0.6274 MB / 442.3 MB, free: 1.492 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.5e-05/0.01201, allocations: 100 kB / 442.4 MB, free: 1.395 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.815e-05/0.0121, allocations: 96 kB / 442.4 MB, free: 1.301 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.01236, allocations: 438.8 kB / 442.9 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.01258, allocations: 343.3 kB / 443.2 MB, free: 0.5352 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1626/0.1751, allocations: 1.236 MB / 444.4 MB, free: 45.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1751, allocations: 0 / 444.4 MB, free: 45.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1751, allocations: 0 / 444.4 MB, free: 45.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.1752, allocations: 0 / 444.4 MB, free: 45.66 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.001708/0.1769, allocations: 1.244 MB / 445.7 MB, free: 45.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1769, allocations: 16.39 kB / 445.7 MB, free: 45.07 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.177, allocations: 121 kB / 445.8 MB, free: 45.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.1771, allocations: 99.34 kB / 445.9 MB, free: 44.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007873/0.1779, allocations: 0.6714 MB / 446.6 MB, free: 44.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.1782, allocations: 0.7438 MB / 447.3 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.1783, allocations: 66.19 kB / 447.4 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.1795, allocations: 1.141 MB / 448.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1795, allocations: 0 / 448.5 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.1795, allocations: 29.36 kB / 448.6 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.926e-05/0.1796, allocations: 40.3 kB / 448.6 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.181, allocations: 1.174 MB / 449.8 MB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002614/0.1836, allocations: 3.237 MB / 453 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1849, allocations: 0.915 MB / 453.9 MB, free: 42.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007985/0.1857, allocations: 0.6521 MB / 454.6 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.1857, allocations: 7 kB / 454.6 MB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000734/0.1864, allocations: 0.6845 MB / 455.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 1.723e-06/0.1864, allocations: 0 / 455.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=61): time 0.009051/0.1955, allocations: 5.511 MB / 460.8 MB, free: 40.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.1955, allocations: 96.17 kB / 460.9 MB, free: 40.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.1958, allocations: 472.4 kB / 461.4 MB, free: 40.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.1959, allocations: 40.45 kB / 461.4 MB, free: 40.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.196, allocations: 333.4 kB / 461.7 MB, free: 40.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.495e-05/0.1961, allocations: 214.5 kB / 461.9 MB, free: 40 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.1962, allocations: 127.1 kB / 462 MB, free: 39.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.457e-05/0.1963, allocations: 379.9 kB / 462.4 MB, free: 39.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005671/0.1968, allocations: 0.5369 MB / 463 MB, free: 39.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.1974, allocations: 0.6592 MB / 463.6 MB, free: 39.11 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.003451/0.2008, allocations: 3.075 MB / 466.7 MB, free: 38.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2009, allocations: 0 / 466.7 MB, free: 38.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00364/0.2045, allocations: 2.516 MB / 469.2 MB, free: 37.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.411e-05/0.2045, allocations: 51.89 kB / 469.3 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.2046, allocations: 2.969 kB / 469.3 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.2058, allocations: 1.087 MB / 470.3 MB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.206, allocations: 109.6 kB / 470.5 MB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/0.2136, allocations: 6.678 MB / 477.1 MB, free: 34.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.214, allocations: 89.81 kB / 477.2 MB, free: 34.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.2141, allocations: 43.3 kB / 477.3 MB, free: 34.42 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.0003004/0.2144, allocations: 279.1 kB / 477.5 MB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.26e-05/0.2145, allocations: 68.56 kB / 477.6 MB, free: 34.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00444/0.2189, allocations: 2.419 MB / 480 MB, free: 33.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.2189, allocations: 10.25 kB / 480 MB, free: 33.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2189, allocations: 1.094 kB / 480 MB, free: 33.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.2189, allocations: 7.5 kB / 480 MB, free: 33.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005236/0.2241, allocations: 3.368 MB / 483.4 MB, free: 32.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2242, allocations: 1.953 kB / 483.4 MB, free: 32.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.2244, allocations: 74.14 kB / 483.5 MB, free: 32.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.2258, allocations: 1.097 MB / 484.6 MB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.2258, allocations: 18.67 kB / 484.6 MB, free: 32.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0089/0.2347, allocations: 6.659 MB / 491.3 MB, free: 29.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2348, allocations: 4.406 kB / 491.3 MB, free: 29.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005133/0.2399, allocations: 3.198 MB / 494.5 MB, free: 28.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.2401, allocations: 147.8 kB / 494.6 MB, free: 28.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.004e-05/0.2402, allocations: 34.95 kB / 494.6 MB, free: 28.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.2406, allocations: 92.72 kB / 494.7 MB, free: 28.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.2408, allocations: 172.2 kB / 494.9 MB, free: 28.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-05/0.2408, allocations: 25.83 kB / 494.9 MB, free: 28.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2411, allocations: 324.9 kB / 495.2 MB, free: 28.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2411, allocations: 1.312 kB / 495.2 MB, free: 28.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006223/0.2417, allocations: 222.4 kB / 495.5 MB, free: 28.45 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.005064/0.2468, allocations: 3.762 MB / 499.2 MB, free: 26.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002231/0.249, allocations: 1.707 MB / 0.4892 GB, free: 25.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.249, allocations: 0 / 0.4892 GB, free: 25.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2505, allocations: 1.081 MB / 0.4902 GB, free: 24.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.251, allocations: 165.7 kB / 0.4904 GB, free: 24.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.2618, allocations: 9.932 MB / 0.5001 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.2621, allocations: 403.4 kB / 0.5005 GB, free: 15.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002273/0.2623, allocations: 122 kB / 0.5006 GB, free: 15.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.2625, allocations: 232.4 kB / 0.5008 GB, free: 14.98 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2625, allocations: 0 / 0.5008 GB, free: 14.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.2926, allocations: 23.18 MB / 0.5235 GB, free: 8.047 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/8.18, allocations: 4 kB / 0.5235 GB, free: 8.043 MB / 426.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.029079525731504] Failed to read output from testmodel.py, exit status != 0: 8.273608662188053 8.283388377 8.105142029 Calling exit ...