Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 189.2 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1817/0.1817, allocations: 38.5 MB / 342.5 MB, free: 8.086 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 69.23 kB / 478.6 MB, free: 33.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1115, allocations: 61.25 MB / 0.5272 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01384/0.1254, allocations: 11.06 MB / 0.538 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.1377, allocations: 7.121 MB / 0.545 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.1389, allocations: 47.69 kB / 0.545 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02135/0.1603, allocations: 12.95 MB / 0.5577 GB, free: 2.145 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.1634, allocations: 1.112 MB / 0.5587 GB, free: 1.027 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.1652, allocations: 0.655 MB / 0.5594 GB, free: 380 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00676/0.172, allocations: 3.907 MB / 0.5632 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.1737, allocations: 0.8051 MB / 0.564 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002318/0.176, allocations: 1.097 MB / 0.5651 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.1785, allocations: 1.503 MB / 0.5665 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003949/0.1789, allocations: 152 kB / 0.5667 GB, free: 8.867 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1804, allocations: 0.5344 MB / 0.5672 GB, free: 8.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.1814, allocations: 0.8998 MB / 0.5681 GB, free: 7.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.1825, allocations: 0.9679 MB / 0.569 GB, free: 6.457 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003371/0.1859, allocations: 2.498 MB / 0.5715 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1859, allocations: 0 / 0.5715 GB, free: 3.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1859, allocations: 0 / 0.5715 GB, free: 3.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.928e-05/0.1859, allocations: 0 / 0.5715 GB, free: 3.949 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005321/0.1913, allocations: 2.214 MB / 0.5736 GB, free: 1.672 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.1913, allocations: 15.89 kB / 0.5736 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003017/0.1916, allocations: 224.2 kB / 0.5738 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001656/0.1933, allocations: 331.2 kB / 0.5742 GB, free: 1.102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00314/0.1964, allocations: 1.285 MB / 0.5754 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.523e-05/0.1965, allocations: 102.6 kB / 0.5755 GB, free: 15.67 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005701/0.1971, allocations: 239.8 kB / 0.5757 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003566/0.2006, allocations: 2.149 MB / 0.5778 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.085e-05/0.2007, allocations: 8 kB / 0.5779 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.2008, allocations: 55.98 kB / 0.5779 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006286/0.2015, allocations: 186.6 kB / 0.5781 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003143/0.2046, allocations: 1.752 MB / 0.5798 GB, free: 11.18 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01352/0.2181, allocations: 8.595 MB / 0.5882 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.2207, allocations: 1.759 MB / 0.5899 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.222, allocations: 0.7223 MB / 0.5906 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.665e-05/0.2221, allocations: 20.89 kB / 0.5906 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.2221, allocations: 43.56 kB / 0.5907 GB, free: 15.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 3.828e-06/0.2221, allocations: 0 / 0.5907 GB, free: 15.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=150): time 0.01939/0.2415, allocations: 7.597 MB / 0.5981 GB, free: 7.723 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/0.2416, allocations: 90.42 kB / 0.5982 GB, free: 7.617 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.2431, allocations: 1.037 MB / 0.5992 GB, free: 6.566 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.2433, allocations: 53.7 kB / 0.5992 GB, free: 6.508 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007081/0.244, allocations: 0.7856 MB / 0.6 GB, free: 5.711 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006746/0.2447, allocations: 0.5617 MB / 0.6006 GB, free: 5.145 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006373/0.2453, allocations: 323.5 kB / 0.6009 GB, free: 4.824 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2455, allocations: 313.2 kB / 0.6012 GB, free: 4.516 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.2469, allocations: 0.7691 MB / 0.6019 GB, free: 3.746 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.2486, allocations: 1.251 MB / 0.6031 GB, free: 2.301 MB / 462.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.2598/0.5085, allocations: 5.673 MB / 0.6087 GB, free: 71.44 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/0.5085, allocations: 3.938 kB / 0.6087 GB, free: 71.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00887/0.5174, allocations: 3.867 MB / 0.6125 GB, free: 70.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.5174, allocations: 11.47 kB / 0.6125 GB, free: 70.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-05/0.5174, allocations: 13.59 kB / 0.6125 GB, free: 70.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005655/0.5231, allocations: 1.729 MB / 0.6142 GB, free: 70.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.5242, allocations: 266.7 kB / 0.6144 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02263/0.5468, allocations: 18.52 MB / 0.6325 GB, free: 59.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.5482, allocations: 82.91 kB / 0.6326 GB, free: 59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/0.5483, allocations: 77.48 kB / 0.6327 GB, free: 58.98 MB / 462.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.generator.psi_rq[1] = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007916/0.5491, allocations: 0.5375 MB / 0.6332 GB, free: 58.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.5493, allocations: 155.5 kB / 0.6333 GB, free: 58.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004482/0.5538, allocations: 2.39 MB / 0.6357 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.5538, allocations: 16 kB / 0.6357 GB, free: 56.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.5538, allocations: 4 kB / 0.6357 GB, free: 56.76 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.5538, allocations: 7.969 kB / 0.6357 GB, free: 56.75 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008645/0.5625, allocations: 4.311 MB / 0.6399 GB, free: 52.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.5625, allocations: 4.812 kB / 0.6399 GB, free: 52.35 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/0.5641, allocations: 303.6 kB / 0.6402 GB, free: 52.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002481/0.5665, allocations: 0.5578 MB / 0.6407 GB, free: 51.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.5668, allocations: 51.97 kB / 0.6408 GB, free: 51.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007961/0.5747, allocations: 10.14 MB / 0.6507 GB, free: 40.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5747, allocations: 8.062 kB / 0.6507 GB, free: 40.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005342/0.5801, allocations: 3.216 MB / 0.6538 GB, free: 37.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008291/0.5809, allocations: 348 kB / 0.6542 GB, free: 36.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002872/0.5812, allocations: 47.98 kB / 0.6542 GB, free: 36.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009193/0.5821, allocations: 63.94 kB / 0.6543 GB, free: 36.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.5824, allocations: 121 kB / 0.6544 GB, free: 36.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.5824, allocations: 43.98 kB / 0.6544 GB, free: 36.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000808/0.5832, allocations: 0.6892 MB / 0.6551 GB, free: 35.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5832, allocations: 0 / 0.6551 GB, free: 35.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001888/0.5851, allocations: 0.5708 MB / 0.6557 GB, free: 35.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],meterDC.pav,inverter2.vDC1,line.v[1,2],line.v[1,3],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005714/0.5908, allocations: 3.85 MB / 0.6594 GB, free: 31.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004814/0.5957, allocations: 3.002 MB / 0.6624 GB, free: 28.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.5957, allocations: 0 / 0.6624 GB, free: 28.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.5977, allocations: 1.525 MB / 0.6639 GB, free: 26.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.5993, allocations: 336.6 kB / 0.6642 GB, free: 26.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02921/0.6285, allocations: 18.83 MB / 0.6826 GB, free: 7.102 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/0.63, allocations: 1.588 MB / 0.6841 GB, free: 5.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.6313, allocations: 404.5 kB / 0.6845 GB, free: 5.078 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009572/0.6322, allocations: 0.6555 MB / 0.6851 GB, free: 4.422 MB / 462.1 MB Notification: Performance of SimCode: time 1.432e-06/0.6322, allocations: 0 / 0.6851 GB, free: 4.422 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/0.7394, allocations: 46.99 MB / 0.731 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.42, allocations: 10.66 kB / 0.731 GB, free: 5.645 MB / 0.4981 GB " [Timeout remaining time 643] (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.350901869125664] Failed to read output from testmodel.py, exit status != 0: 16.553145464044064 16.567139434 16.378125645 Calling exit ...