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.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.001389/0.001389, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001563/0.001563, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1907/0.1907, allocations: 38.52 MB / 353.2 MB, free: 12.56 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_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.002302/0.002302, allocations: 62.84 kB / 493.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3723, allocations: 62.48 MB / 0.5428 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01404/0.3863, allocations: 11.22 MB / 0.5537 GB, free: 7.625 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.3984, allocations: 7.179 MB / 0.5607 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.3998, allocations: 65.28 kB / 0.5608 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02531/0.4251, allocations: 14.51 MB / 0.575 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002982/0.4281, allocations: 1.128 MB / 0.5761 GB, free: 2.352 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.4299, allocations: 0.6706 MB / 0.5767 GB, free: 1.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006086/0.436, allocations: 4.078 MB / 0.5807 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.4373, allocations: 0.8475 MB / 0.5815 GB, free: 12.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.439, allocations: 1.105 MB / 0.5826 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002368/0.4414, allocations: 1.519 MB / 0.5841 GB, free: 10.08 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002998/0.4417, allocations: 148 kB / 0.5842 GB, free: 9.938 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001246/0.4429, allocations: 0.5851 MB / 0.5848 GB, free: 9.352 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009518/0.4439, allocations: 0.9155 MB / 0.5857 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.445, allocations: 0.9601 MB / 0.5866 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00314/0.4481, allocations: 2.514 MB / 0.5891 GB, free: 4.945 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4481, allocations: 0 / 0.5891 GB, free: 4.945 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4481, allocations: 0 / 0.5891 GB, free: 4.945 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.626e-05/0.4481, allocations: 0 / 0.5891 GB, free: 4.945 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.004688/0.4528, allocations: 2.149 MB / 0.5912 GB, free: 2.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.4529, allocations: 19.98 kB / 0.5912 GB, free: 2.734 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.907e-05/0.4529, allocations: 34.86 kB / 0.5913 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003051/0.4532, allocations: 224.2 kB / 0.5915 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/0.4553, allocations: 371 kB / 0.5918 GB, free: 2.105 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.4582, allocations: 1.197 MB / 0.593 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.4583, allocations: 94.66 kB / 0.5931 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005717/0.4588, allocations: 239.8 kB / 0.5933 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003534/0.4624, allocations: 2.149 MB / 0.5954 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.965e-05/0.4624, allocations: 15.88 kB / 0.5954 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.4626, allocations: 59.98 kB / 0.5955 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006362/0.4632, allocations: 178.7 kB / 0.5956 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003202/0.4664, allocations: 1.76 MB / 0.5974 GB, free: 12.27 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.01285/0.4792, allocations: 8.46 MB / 0.6056 GB, free: 3.395 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.4817, allocations: 1.298 MB / 0.6069 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.483, allocations: 0.7234 MB / 0.6076 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.4831, allocations: 17.06 kB / 0.6076 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.4832, allocations: 43.56 kB / 0.6077 GB, free: 1.285 MB / 446.1 MB Notification: Performance of pre-optimization done (n=122): time 2.796e-06/0.4832, allocations: 4 kB / 0.6077 GB, free: 1.281 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.02257/0.5057, allocations: 7.156 MB / 0.6147 GB, free: 10.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.5058, allocations: 94.42 kB / 0.6147 GB, free: 9.957 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.5072, allocations: 1.037 MB / 0.6158 GB, free: 8.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.5074, allocations: 49.7 kB / 0.6158 GB, free: 8.852 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006738/0.5081, allocations: 0.7895 MB / 0.6166 GB, free: 8.051 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006212/0.5087, allocations: 0.5578 MB / 0.6171 GB, free: 7.488 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005796/0.5093, allocations: 343.4 kB / 0.6174 GB, free: 7.148 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5094, allocations: 301.1 kB / 0.6177 GB, free: 6.852 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.5108, allocations: 0.773 MB / 0.6185 GB, free: 6.078 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.5125, allocations: 1.244 MB / 0.6197 GB, free: 4.641 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.0166/0.5291, allocations: 5.618 MB / 0.6252 GB, free: 14.86 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/0.5291, allocations: 4 kB / 0.6252 GB, free: 14.86 MB / 478.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009412/0.5385, allocations: 3.781 MB / 0.6289 GB, free: 11.05 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.5386, allocations: 14.66 kB / 0.6289 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/0.5386, allocations: 12 kB / 0.6289 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00588/0.5445, allocations: 1.74 MB / 0.6306 GB, free: 9.277 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.5456, allocations: 267.5 kB / 0.6309 GB, free: 9.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02836/0.5739, allocations: 18.1 MB / 0.6485 GB, free: 6.449 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.5753, allocations: 83.88 kB / 0.6486 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002494/0.5756, allocations: 80.05 kB / 0.6487 GB, free: 6.289 MB / 494.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.00111/0.5767, allocations: 0.5317 MB / 0.6492 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/0.577, allocations: 151 kB / 0.6494 GB, free: 5.602 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005652/0.5827, allocations: 2.243 MB / 0.6515 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/0.5827, allocations: 19.94 kB / 0.6516 GB, free: 3.312 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.5827, allocations: 4 kB / 0.6516 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.5827, allocations: 15.91 kB / 0.6516 GB, free: 3.293 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009459/0.5922, allocations: 4.125 MB / 0.6556 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/0.5922, allocations: 4 kB / 0.6556 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/0.5939, allocations: 311.9 kB / 0.6559 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/0.5966, allocations: 0.5464 MB / 0.6564 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001909/0.5968, allocations: 51.97 kB / 0.6565 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.6083, allocations: 9.645 MB / 0.6659 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.6083, allocations: 7.984 kB / 0.6659 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00681/0.6151, allocations: 3.051 MB / 0.6689 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007856/0.6159, allocations: 282.9 kB / 0.6692 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.6162, allocations: 51.92 kB / 0.6692 GB, free: 488 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009236/0.6171, allocations: 55.94 kB / 0.6693 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003048/0.6175, allocations: 125 kB / 0.6694 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.6176, allocations: 43.98 kB / 0.6694 GB, free: 264 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001098/0.6187, allocations: 0.6931 MB / 0.6701 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6187, allocations: 4 kB / 0.6701 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002094/0.6208, allocations: 0.5702 MB / 0.6707 GB, free: 14.98 MB / 0.5137 GB 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.007098/0.6279, allocations: 3.685 MB / 0.6743 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005942/0.6338, allocations: 2.991 MB / 0.6772 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6338, allocations: 0 / 0.6772 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002617/0.6364, allocations: 1.538 MB / 0.6787 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.6382, allocations: 331.2 kB / 0.679 GB, free: 6.262 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0378/0.676, allocations: 18.72 MB / 0.6973 GB, free: 2.926 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002125/0.6782, allocations: 1.588 MB / 0.6988 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001274/0.6794, allocations: 400.5 kB / 0.6992 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/0.6806, allocations: 0.6633 MB / 0.6999 GB, free: 252 kB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/0.6806, allocations: 0 / 0.6999 GB, free: 252 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3391/1.02, allocations: 48.77 MB / 0.7475 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.62, allocations: 9.562 kB / 0.7475 GB, free: 169.8 MB / 0.5606 GB " [Timeout remaining time 642] (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: 20.783576578018256] Failed to read output from testmodel.py, exit status != 0: 17.820853709999938 17.829945702 17.379354506 Calling exit ...