Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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.001325/0.001325, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001394/0.001394, allocations: 219 kB / 21.46 MB, free: 1.586 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.496/1.496, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.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.1866/0.1866, allocations: 38.5 MB / 349.4 MB, free: 2.562 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: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 63.91 kB / 487.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1266, allocations: 62.42 MB / 0.5373 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01393/0.1405, allocations: 11.08 MB / 0.5482 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.1528, allocations: 7.16 MB / 0.5552 GB, free: 5.219 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.1541, allocations: 63.44 kB / 0.5552 GB, free: 5.156 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02286/0.177, allocations: 13 MB / 0.5679 GB, free: 8.137 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003513/0.1805, allocations: 1.116 MB / 0.569 GB, free: 7.016 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002544/0.183, allocations: 0.6589 MB / 0.5697 GB, free: 6.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007373/0.1904, allocations: 3.914 MB / 0.5735 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.1919, allocations: 0.8012 MB / 0.5743 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.1941, allocations: 1.109 MB / 0.5753 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.1967, allocations: 1.515 MB / 0.5768 GB, free: 14.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003604/0.1971, allocations: 144 kB / 0.577 GB, free: 14.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.1983, allocations: 0.5421 MB / 0.5775 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009384/0.1992, allocations: 0.9038 MB / 0.5784 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.2004, allocations: 0.9563 MB / 0.5793 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.2035, allocations: 2.518 MB / 0.5818 GB, free: 9.895 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2035, allocations: 0 / 0.5818 GB, free: 9.895 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2035, allocations: 0 / 0.5818 GB, free: 9.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.93e-05/0.2036, allocations: 0 / 0.5818 GB, free: 9.895 MB / 446.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.004841/0.2084, allocations: 2.21 MB / 0.5839 GB, free: 7.621 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2084, allocations: 8.031 kB / 0.5839 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.436e-05/0.2085, allocations: 46.8 kB / 0.584 GB, free: 7.566 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002896/0.2088, allocations: 228.1 kB / 0.5842 GB, free: 7.332 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002223/0.211, allocations: 379 kB / 0.5846 GB, free: 6.961 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.2137, allocations: 1.285 MB / 0.5858 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.018e-05/0.2138, allocations: 110.6 kB / 0.5859 GB, free: 5.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005704/0.2143, allocations: 227.8 kB / 0.5861 GB, free: 5.301 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003638/0.218, allocations: 2.153 MB / 0.5882 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.312e-05/0.218, allocations: 15.94 kB / 0.5882 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001686/0.2182, allocations: 55.98 kB / 0.5883 GB, free: 2.969 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007124/0.2189, allocations: 182.6 kB / 0.5885 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003464/0.2224, allocations: 1.756 MB / 0.5902 GB, free: 1.027 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.2408/0.4631, allocations: 8.581 MB / 0.5986 GB, free: 47.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/0.4657, allocations: 1.752 MB / 0.6003 GB, free: 46.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.4671, allocations: 0.7168 MB / 0.601 GB, free: 45.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.791e-05/0.4672, allocations: 26.19 kB / 0.601 GB, free: 45.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.4672, allocations: 45.59 kB / 0.601 GB, free: 45.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=122): time 3.317e-06/0.4672, allocations: 0 / 0.601 GB, free: 45.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.01918/0.4864, allocations: 7.597 MB / 0.6085 GB, free: 42.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.4865, allocations: 97.48 kB / 0.6086 GB, free: 42.51 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.4878, allocations: 1.036 MB / 0.6096 GB, free: 42.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.4879, allocations: 51.05 kB / 0.6096 GB, free: 42.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.4884, allocations: 0.785 MB / 0.6104 GB, free: 41.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.4888, allocations: 0.5654 MB / 0.6109 GB, free: 41.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004662/0.4892, allocations: 328 kB / 0.6113 GB, free: 41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.821e-05/0.4893, allocations: 309.2 kB / 0.6115 GB, free: 40.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.4905, allocations: 0.7758 MB / 0.6123 GB, free: 40.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.4919, allocations: 1.247 MB / 0.6135 GB, free: 39.64 MB / 446.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.01473/0.5066, allocations: 5.686 MB / 0.6191 GB, free: 37.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.071e-05/0.5066, allocations: 7.875 kB / 0.6191 GB, free: 37.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.007968/0.5146, allocations: 3.856 MB / 0.6228 GB, free: 34.53 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.5146, allocations: 8 kB / 0.6229 GB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.5147, allocations: 20.06 kB / 0.6229 GB, free: 34.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005123/0.5198, allocations: 1.734 MB / 0.6246 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.5208, allocations: 259.6 kB / 0.6248 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/0.5427, allocations: 18.51 MB / 0.6429 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.5443, allocations: 83.94 kB / 0.643 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001903/0.5445, allocations: 79.98 kB / 0.643 GB, free: 13.31 MB / 446.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.0008885/0.5453, allocations: 0.5404 MB / 0.6436 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.5456, allocations: 151 kB / 0.6437 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.5502, allocations: 2.397 MB / 0.6461 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.5502, allocations: 12 kB / 0.6461 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.5502, allocations: 4.125 kB / 0.6461 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.5502, allocations: 15.97 kB / 0.6461 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007594/0.5578, allocations: 4.314 MB / 0.6503 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.5578, allocations: 4 kB / 0.6503 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.5593, allocations: 307.6 kB / 0.6506 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/0.5618, allocations: 0.5469 MB / 0.6511 GB, free: 4.836 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001785/0.5619, allocations: 59.95 kB / 0.6512 GB, free: 4.777 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.5726, allocations: 10.14 MB / 0.6611 GB, free: 9.957 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.5726, allocations: 4 kB / 0.6611 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006943/0.5795, allocations: 3.232 MB / 0.6643 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009053/0.5804, allocations: 352 kB / 0.6646 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/0.5806, allocations: 47.94 kB / 0.6646 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008374/0.5815, allocations: 63.94 kB / 0.6647 GB, free: 6.145 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003633/0.5818, allocations: 125 kB / 0.6648 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.582, allocations: 43.92 kB / 0.6649 GB, free: 5.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.583, allocations: 0.6931 MB / 0.6655 GB, free: 5.281 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.583, allocations: 0 / 0.6655 GB, free: 5.281 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00231/0.5853, allocations: 0.578 MB / 0.6661 GB, free: 4.703 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.007021/0.5924, allocations: 3.817 MB / 0.6698 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00577/0.5981, allocations: 3.007 MB / 0.6728 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5981, allocations: 0 / 0.6728 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/0.6008, allocations: 1.525 MB / 0.6743 GB, free: 12.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.6025, allocations: 337.8 kB / 0.6746 GB, free: 11.81 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03722/0.6397, allocations: 18.83 MB / 0.693 GB, free: 8.355 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/0.6414, allocations: 1.585 MB / 0.6945 GB, free: 6.742 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001337/0.6427, allocations: 404.5 kB / 0.6949 GB, free: 6.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.6438, allocations: 0.6555 MB / 0.6955 GB, free: 5.684 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6438, allocations: 0 / 0.6955 GB, free: 5.684 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/0.7462, allocations: 47.03 MB / 0.7415 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.99/16.74, allocations: 0 / 0.7415 GB, free: 6.914 MB / 0.5294 GB " [Timeout remaining time 643] (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.682867594994605] Failed to read output from testmodel.py, exit status != 0: 16.913335632008966 16.928892945 16.722262164 Calling exit ...